{"id":21361847,"url":"https://github.com/mxssl/doh","last_synced_at":"2026-01-06T19:10:53.243Z","repository":{"id":64299113,"uuid":"568163638","full_name":"mxssl/doh","owner":"mxssl","description":"Simple DNS over HTTPS cli client for Cloudflare","archived":false,"fork":false,"pushed_at":"2025-03-15T00:25:02.000Z","size":91,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T01:25:09.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxssl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-19T16:44:34.000Z","updated_at":"2025-03-15T00:24:04.000Z","dependencies_parsed_at":"2023-11-19T14:26:54.192Z","dependency_job_id":"7456219d-d643-4150-a639-8f325f3a798e","html_url":"https://github.com/mxssl/doh","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdoh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdoh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdoh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdoh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxssl","download_url":"https://codeload.github.com/mxssl/doh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835930,"owners_count":20355611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T06:12:14.603Z","updated_at":"2026-01-06T19:10:53.236Z","avatar_url":"https://github.com/mxssl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doh\n\nSimple DNS over HTTPS cli client\n\n## Install\n\n### Linux amd64\n\n```bash\ncurl -LO https://github.com/mxssl/doh/releases/download/v0.0.19/doh_linux_amd64.tar.gz\ntar zvxf doh_linux_amd64.tar.gz\nsudo mv doh /usr/local/bin/doh\nrm doh_linux_amd64.tar.gz\n```\n\n### Linux arm64\n\n```bash\ncurl -LO https://github.com/mxssl/doh/releases/download/v0.0.19/doh_linux_arm64.tar.gz\ntar zvxf doh_linux_arm64.tar.gz\nsudo mv doh /usr/local/bin/doh\nrm doh_linux_arm64.tar.gz\n```\n\n### MacOS arm64 (Apple Silicon)\n\n```bash\ncurl -LO https://github.com/mxssl/doh/releases/download/v0.0.19/doh_darwin_arm64.tar.gz\ntar zvxf doh_darwin_arm64.tar.gz\nsudo mv doh /usr/local/bin/doh\nrm doh_darwin_arm64.tar.gz\n```\n\n### Golang\n\n```bash\ngo install github.com/mxssl/doh@latest\n```\n\n### Docker\n\n```bash\ndocker pull mxssl/doh:v0.0.19\ndocker container run --rm mxssl/doh:v0.0.19 a google.com\n```\n\n## Usage\n\n```bash\ndoh [flags] [query type] [domain name]\n```\n\n### Flags\n\n- `--whois` - Perform WHOIS lookup for IP addresses (A and AAAA records)\n- `--json` - Output results in JSON format\n- `--provider` - DNS-over-HTTPS provider: `cloudflare` (default) or `google`\n\n## Examples\n\n### Basic DNS query (without WHOIS)\n\n```bash\n$ doh a google.com\nname: google.com\ntype: 1\nttl: 291\ndata: 142.250.200.78\n```\n\n### Using Google DNS provider\n\n```bash\n$ doh a google.com --provider google\nname: google.com.\ntype: 1\nttl: 300\ndata: 142.250.184.14\n```\n\n### DNS query with WHOIS lookup\n\n```bash\n$ doh a google.com --whois\nname: google.com\ntype: 1\nttl: 291\ndata: 142.250.200.78\nwhois: Google LLC\n```\n\n### JSON output\n\n```bash\n$ doh --json a google.com\n{\n  \"records\": [\n    {\n      \"name\": \"google.com\",\n      \"type\": 1,\n      \"ttl\": 115,\n      \"data\": \"142.251.36.14\"\n    }\n  ]\n}\n```\n\n### JSON output with WHOIS\n\n```bash\n$ doh --json --whois a google.com\n{\n  \"records\": [\n    {\n      \"name\": \"google.com\",\n      \"type\": 1,\n      \"ttl\": 47,\n      \"data\": \"142.250.179.206\",\n      \"whois\": \"Google LLC\"\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxssl%2Fdoh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxssl%2Fdoh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxssl%2Fdoh/lists"}