{"id":23071924,"url":"https://github.com/javahello/doh-query","last_synced_at":"2025-04-03T10:42:28.329Z","repository":{"id":266195498,"uuid":"865950029","full_name":"JavaHello/doh-query","owner":"JavaHello","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-06T10:35:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T22:36:17.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JavaHello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-01T11:50:51.000Z","updated_at":"2024-10-06T10:35:15.000Z","dependencies_parsed_at":"2024-12-03T12:34:33.815Z","dependency_job_id":null,"html_url":"https://github.com/JavaHello/doh-query","commit_stats":null,"previous_names":["javahello/doh-query"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaHello%2Fdoh-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaHello%2Fdoh-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaHello%2Fdoh-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JavaHello%2Fdoh-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JavaHello","download_url":"https://codeload.github.com/JavaHello/doh-query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246989505,"owners_count":20865305,"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-12-16T07:18:07.394Z","updated_at":"2025-04-03T10:42:28.304Z","avatar_url":"https://github.com/JavaHello.png","language":"Rust","readme":"# DNS over HTTPS Query CLI\n\n简单的 DNS over HTTPS 查询命令行工具\n\n## 使用\n\n```shell\n# 查看帮助\ndoh-query -h\nUsage: doh-query [OPTIONS] \u003cDOMAIN\u003e\n\nArguments:\n  \u003cDOMAIN\u003e  The domain to resolve\n\nOptions:\n  -s, --server \u003cSERVER\u003e                Select the DNS server to use: cloudflare, google, quad9, custom [default: cloudflare]\n      --timeout \u003cTIMEOUT\u003e              The timeout in milliseconds [default: 10000]\n      --retries \u003cRETRIES\u003e              The number of retries [default: 3]\n  -c, --custom-server \u003cCUSTOM_SERVER\u003e  The custom DNS server to use\n  -t, --type \u003cTYPE\u003e                    The type of record to resolve [default: A]\n  -f, --fmt \u003cFMT\u003e                      output format: default, ip2region [default: default]\n      --xdb-filepath \u003cXDB_FILEPATH\u003e    The path to the IP2Region database file\n  -h, --help                           Print help\n  -V, --version                        Print version\n\n# 查询域名\ndoh-query google.com\n---------------------------------\nDns Server: Cloudflare\nStatus: 0\nQuestion:\n  ------------\n  Name: google.com\n  Type: A\nAnswer:\n  ------------\n  Name: google.com\n  Type: A\n  TTL: 270\n  Data: 142.250.71.142\n\n\n```\n\n## 特性\n\n- 内置 google, cloudflare, quad9 三个 DNS over HTTPS 服务器\n- 支持自定义 DNS over HTTPS 服务器\n- 支持 `ip2region` 查询 IP 所在地, 依赖 `ip2region` 数据库文件\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavahello%2Fdoh-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavahello%2Fdoh-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavahello%2Fdoh-query/lists"}