{"id":17175885,"url":"https://github.com/sc0vu/doh-js-client","last_synced_at":"2025-04-13T16:42:26.821Z","repository":{"id":42994377,"uuid":"198442465","full_name":"sc0Vu/doh-js-client","owner":"sc0Vu","description":"DNS-over-HTTPS client for nodejs.","archived":false,"fork":false,"pushed_at":"2023-07-18T22:18:54.000Z","size":627,"stargazers_count":16,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T07:35:57.141Z","etag":null,"topics":["dns-over-https","dns-over-tls","doh","dot"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sc0Vu.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}},"created_at":"2019-07-23T14:01:22.000Z","updated_at":"2024-07-04T03:27:55.000Z","dependencies_parsed_at":"2023-02-01T22:32:28.494Z","dependency_job_id":null,"html_url":"https://github.com/sc0Vu/doh-js-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fdoh-js-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fdoh-js-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fdoh-js-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sc0Vu%2Fdoh-js-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sc0Vu","download_url":"https://codeload.github.com/sc0Vu/doh-js-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248747418,"owners_count":21155447,"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":["dns-over-https","dns-over-tls","doh","dot"],"created_at":"2024-10-14T23:58:03.878Z","updated_at":"2025-04-13T16:42:26.799Z","avatar_url":"https://github.com/sc0Vu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# doh-js-client\n[![Test and Build](https://github.com/sc0Vu/doh-js-client/actions/workflows/ci.yml/badge.svg)](https://github.com/sc0Vu/doh-js-client/actions/workflows/ci.yml)\n\nDNS-over-HTTPS/DNS-over-TLS client for nodejs, secure your nodejs dns query with modern tls.\n\n# Install\n```BASH\n$ npm install doh-js-client\n```\n\n# Usage\n\n## DNS over HTTPS (:443)\n\n1. Initialize the instance with given provider (google, cloudflare, cleanbrowsing)\n```JS\nconst DoH = require('doh-js-client').DoH\n\nlet dns = new DoH('google')\n```\n\n2. Resolve dns name\n```JS\ndns.resolve('example.com', 'A')\n  .then(function (record) {\n    // do something\n  })\n  .catch(function (err) {\n    // something wrong happened\n  })\n```\n\n## DNS over TLS (:583)\n\n1. Initialize the instance with given provider (google, cloudflare, cleanbrowsing)\n```JS\nconst DoT = require('doh-js-client').DoT\n\nlet dns = new DoT('google', privateKeyFilePath, certificateFilePath)\n```\n\n2. Resolve dns name\n```JS\ndns.resolve('example.com', 'A')\n  .then(function (record) {\n    // do something\n  })\n  .catch(function (err) {\n    // something wrong happened\n  })\n```\n\n# Known issue and supported dns type\n\n1. Cleanbrowsing doesn't support caa query (return 400).\n\n2. Supported dns type:\n  * A\n  * AAAA\n  * CAA\n  * CNAME\n  * DS\n  * DNSKEY\n  * MX\n  * NS\n  * NSEC\n  * NSEC3\n  * RRSIG\n  * SOA\n  * TXT\n\n# License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0vu%2Fdoh-js-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsc0vu%2Fdoh-js-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsc0vu%2Fdoh-js-client/lists"}