{"id":20879243,"url":"https://github.com/7c/doh-client","last_synced_at":"2026-04-19T20:38:09.243Z","repository":{"id":129720792,"uuid":"440992071","full_name":"7c/doh-client","owner":"7c","description":"doh-client implementation in javascript","archived":false,"fork":false,"pushed_at":"2022-01-09T20:32:08.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T08:56:44.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/7c.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":"2021-12-22T21:47:22.000Z","updated_at":"2022-01-09T20:32:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"e45a3536-3991-4809-b410-a554b4f8e89c","html_url":"https://github.com/7c/doh-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7c/doh-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fdoh-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fdoh-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fdoh-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fdoh-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7c","download_url":"https://codeload.github.com/7c/doh-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7c%2Fdoh-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32022553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-18T07:15:40.364Z","updated_at":"2026-04-19T20:38:09.217Z","avatar_url":"https://github.com/7c.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DOH CLIENT (NodeJS)\nNodeJS based Dns-Over-Https client implementation\n## Install\n`npm i -g https://github.com/7c/doh-client`\nThis will install doh-client as global executable\n\n## Usage\n`doh \u003chostname\u003e`\n\n## Options\n```\nUsage:\ndoh \u003chostname\u003e [...parameters...]\n        --rtype \u003crtype\u003e          resource type to query, default 'A'\n        --method \u003cmethod\u003e       request method,default 'POST'\n        --server \u003curl\u003e          doh server,default 'https://ns3.com'\n        --format \u003cfmt\u003e          output format, default 'json', available:'string','basic'\n        \n        --timeout \u003cseconds\u003e     query timeout, default: 5\n        --useragent \u003cua\u003e        sets user-agent for requests, default:'ns3-doh-client'\n        --version               outputs the version of doh-client version\n```\n\n## BASIC Output\n```\n$ doh ns3.com --format basic\nns3.com IN A 142.93.50.149\nns3.com IN A 144.202.68.103\nns3.com IN A 66.42.82.132\nns3.com IN A 3.136.108.55\nns3.com IN A 104.238.182.24\nns3.com IN A 140.82.29.140\nns3.com IN A 104.207.138.237\nns3.com IN A 137.184.82.165\nns3.com IN A 45.77.163.166\n$ doh ns3.com --format basic --rtype mx\nns3.com IN MX 50 mx3.zoho.com\nns3.com IN MX 20 mx2.zoho.com\nns3.com IN MX 10 mx.zoho.com\n```\n\n## JSON Output\noutput format can be changed with --format option\n\n```\n{\n  query: {\n    name: 'ns3.com',\n    hostname: 'ns3.com',\n    path: '/',\n    method: 'POST',\n    userAgent: 'ns3-doh-client',\n    type: 'A',\n    port: 443,\n    klass: 'IN',\n    useHttps: true\n  },\n  spent: 243,\n  dohServer: {\n    id: 0,\n    type: 'response',\n    flags: 384,\n    flag_qr: true,\n    opcode: 'QUERY',\n    flag_aa: false,\n    flag_tc: false,\n    flag_rd: true,\n    flag_ra: true,\n    flag_z: false,\n    flag_ad: false,\n    flag_cd: false,\n    rcode: 'NOERROR',\n    questions: [ { name: 'ns3.com', type: 'A', class: 'IN' } ],\n    answers: [\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '104.238.182.24'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '137.184.82.165'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '3.136.108.55'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '45.77.163.166'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '104.207.138.237'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '142.93.50.149'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '66.42.82.132'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '144.202.68.103'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '140.82.29.140'\n      },\n      {\n        name: 'ns3.com',\n        type: 'A',\n        ttl: 300,\n        class: 'IN',\n        flush: false,\n        data: '54.219.166.243'\n      }\n    ],\n    authorities: [],\n    additionals: []\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fdoh-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7c%2Fdoh-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7c%2Fdoh-client/lists"}