{"id":17655962,"url":"https://github.com/sagi/node-dnstls","last_synced_at":"2025-05-07T11:15:26.713Z","repository":{"id":32951912,"uuid":"147006952","full_name":"sagi/node-dnstls","owner":"sagi","description":"DNS-over-TLS Command Line Tool","archived":false,"fork":false,"pushed_at":"2023-03-04T03:45:13.000Z","size":1677,"stargazers_count":10,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T11:15:19.862Z","etag":null,"topics":[],"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/sagi.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":"2018-09-01T14:50:50.000Z","updated_at":"2021-09-26T18:41:38.000Z","dependencies_parsed_at":"2025-03-11T00:32:48.568Z","dependency_job_id":"2af142e7-44de-4d0c-8b43-89130e613928","html_url":"https://github.com/sagi/node-dnstls","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/sagi%2Fnode-dnstls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2Fnode-dnstls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2Fnode-dnstls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagi%2Fnode-dnstls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagi","download_url":"https://codeload.github.com/sagi/node-dnstls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252865697,"owners_count":21816309,"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-10-23T13:09:18.359Z","updated_at":"2025-05-07T11:15:26.654Z","avatar_url":"https://github.com/sagi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnstls\n\n[`dnstls`](https://www.npmjs.com/package/dnstls) is a Node.js DNS over TLS command line tool. Here's a [blog post](https://sagi.io/2018/09/dns-over-tls---thoughts-and-implementation/) that explains how it works.\n\n[![CircleCI](https://circleci.com/gh/sagi/node-dnstls.svg?style=svg)](https://circleci.com/gh/sagi/node-dnstls)\n[![Coverage Status](https://coveralls.io/repos/github/sagi/node-dnstls/badge.svg?branch=master)](https://coveralls.io/github/sagi/node-dnstls?branch=master)\n[![MIT License](https://img.shields.io/npm/l/dnstls.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n[![version](https://img.shields.io/npm/v/dnstls.svg?style=flat-square)](http://npm.im/dnstls)\n\n## Installation:\n~~~\n$ npm i -g dnstls\n~~~\n\nUsage:\n~~~\nUsage: dnstls name [type] [class] [@server] [-p\u003cport\u003e] [+tls-host=\u003chost\u003e]\n~~~\n\nIf only `name` (domain name) is provided, it defaults to using Cloudflare's DNS-over-TLS server\n(`@1.1.1.1 +tls-host=cloudflare-dns.com`).\n\n## Example\n\n~~~\n$ dnstls sagi.io\n~~~\n\nOutput:\n~~~json\n{\n  \"id\": 9013,\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\": [\n    {\n      \"name\": \"sagi.io\",\n      \"type\": \"A\",\n      \"class\": \"IN\"\n    }\n  ],\n  \"answers\": [\n    {\n      \"name\": \"sagi.io\",\n      \"type\": \"A\",\n      \"ttl\": 300,\n      \"class\": \"IN\",\n      \"flush\": false,\n      \"data\": \"151.101.1.195\"\n    },\n    {\n      \"name\": \"sagi.io\",\n      \"type\": \"A\",\n      \"ttl\": 300,\n      \"class\": \"IN\",\n      \"flush\": false,\n      \"data\": \"151.101.65.195\"\n    }\n  ],\n  \"authorities\": [],\n  \"additionals\": []\n}\n~~~\n\nProbably some time the future we'll add a `DiG`-like output.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagi%2Fnode-dnstls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagi%2Fnode-dnstls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagi%2Fnode-dnstls/lists"}