{"id":21361851,"url":"https://github.com/mxssl/dns","last_synced_at":"2025-07-13T02:32:39.779Z","repository":{"id":34983258,"uuid":"140185524","full_name":"mxssl/dns","owner":"mxssl","description":"dns is a simple CLI tool for DNS-LG API","archived":false,"fork":false,"pushed_at":"2024-08-29T14:31:01.000Z","size":26125,"stargazers_count":34,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-29T16:12:52.729Z","etag":null,"topics":["api-client","dns","dns-client","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":".github/FUNDING.yml","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},"funding":{"custom":"https://www.buymeacoffee.com/ydfPU75"}},"created_at":"2018-07-08T16:45:24.000Z","updated_at":"2024-08-29T14:31:02.000Z","dependencies_parsed_at":"2023-11-06T14:36:46.049Z","dependency_job_id":"2c65479f-d49d-45d0-91f2-9e778948e2e8","html_url":"https://github.com/mxssl/dns","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxssl%2Fdns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxssl","download_url":"https://codeload.github.com/mxssl/dns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850177,"owners_count":17534067,"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":["api-client","dns","dns-client","go","golang"],"created_at":"2024-11-22T06:12:15.007Z","updated_at":"2024-11-22T06:12:15.663Z","avatar_url":"https://github.com/mxssl.png","language":"Go","funding_links":["https://www.buymeacoffee.com/ydfPU75"],"categories":["Go"],"sub_categories":[],"readme":"# dns\n\n`dns` is a simple CLI tool for [DNS-LG API](http://www.dns-lg.com)\n\n```sh\ndns a github.com\n{\n    \"question\": [\n        {\n            \"name\": \"github.com.\",\n            \"type\": \"A\",\n            \"class\": \"IN\"\n        }\n    ],\n    \"answer\": [\n        {\n            \"name\": \"github.com.\",\n            \"type\": \"A\",\n            \"class\": \"IN\",\n            \"ttl\": 60,\n            \"rdlength\": 4,\n            \"rdata\": \"140.82.113.4\"\n        }\n    ]\n}\n```\n\n## Install\n\n### Download compiled binary\n\n[Linux amd64](https://github.com/mxssl/dns/releases/download/1.0.7/dns_Linux_x86_64.tar.gz)\n\n[MacOS amd64](https://github.com/mxssl/dns/releases/download/1.0.7/dns_darwin_amd64.tar.gz)\n\n[MacOS arm64](https://github.com/mxssl/dns/releases/download/1.0.7/dns_darwin_arm64.tar.gz)\n\n### Examples\n\nLinux amd64:\n\n```bash\nwget https://github.com/mxssl/dns/releases/download/1.0.7/dns_linux_amd64.tar.gz\ntar zvxf dns_linux_amd64.tar.gz\nmv dns /usr/local/bin/dns\nchmod +x /usr/local/bin/dns\nrm dns_linux_amd64.tar.gz\n```\n\nMacOS amd64:\n\n```bash\nwget https://github.com/mxssl/dns/releases/download/1.0.7/dns_darwin_amd64.tar.gz\ntar zvxf dns_darwin_amd64.tar.gz\nmv dns /usr/local/bin/dns\nchmod +x /usr/local/bin/dns\nrm dns_darwin_amd64.tar.gz\n```\n\nMacOS arm64:\n\n```bash\nwget https://github.com/mxssl/dns/releases/download/1.0.7/dns_darwin_arm64.tar.gz\ntar zvxf dns_darwin_arm64.tar.gz\nmv dns /usr/local/bin/dns\nchmod +x /usr/local/bin/dns\nrm dns_darwin_arm64.tar.gz\n```\n\n## Usage\n\n```bash\ndns is a CLI for DNS-LG API.\n\nUsage:\n  dns [command]\n\nAvailable Commands:\n  a           Get Host Address (A records)\n  aaaa        Get IPv6 Host Address (AAAA records)\n  cert        Get Certificate (CERT records)\n  cname       Get Canonical Name (CNAME records)\n  dhcid       Get DHCP Identifier (DHCID records)\n  dlv         Get DNSSEC Lookaside Validation record (DLV records)\n  dname       Get Delegation name (DNAME records)\n  dnskey      Get DNS Key record (DNSKEY records)\n  ds          Get Delegation Signer (DS records)\n  help        Help about any command\n  hinfo       Get Host Information (HINFO records)\n  hip         Get Host Identity Protocol (HIP records)\n  ipseckey    Get IPSec Key (IPSECKEY records)\n  kx          Get Key eXchanger record (KX records)\n  loc         Get Location record (LOC records)\n  mx          Get Mail Exchange record (MX records)\n  naptr       Get Name Authority Pointer (NAPTR records)\n  ns          Get Name Servers (NS records)\n  nsec        Get Next-Secure record (NSEC records)\n  nsec3       Get NSEC record version 3 (NSEC3 records)\n  nsec3param  Get NSEC3 parameters (NSEC3PARAM records)\n  opt         Get Option record (OPT records)\n  ptr         Get Pointer record (PTR records)\n  rptr4       Get reverse (PTR) record from IPv4 addresses\n  rptr6       Get reverse (PTR) record from IPv4 addresses\n  rrsig       Get Resource Records Signature (RRSIG records)\n  soa         Get Start of Authority (SOA record)\n  spf         Get Sender Policy Framework (SPF records)\n  srv         Get Service Locator (SRV records)\n  sshfp       Get SSH Public Key Fingerprint (SSHFP records)\n  ta          Get DNSSEC Trust Authorities (TA records)\n  talink      Get Trust Anchor LINK (TALINK records)\n  tlsa        Get TLSA records\n  txt         Get Text record (TXT records)\n\nFlags:\n  -h, --help              help for dns\n      --raw               Raw output without color\n  -r, --resolver string   Choice dns resolver (default \"google1\")\n\nUse \"dns [command] --help\" for more information about a command\n```\n\n## Example\n\n```sh\ndns a go.dev\n{\n    \"question\": [\n        {\n            \"name\": \"go.dev.\",\n            \"type\": \"A\",\n            \"class\": \"IN\"\n        }\n    ],\n    \"answer\": [\n        {\n            \"name\": \"go.dev.\",\n            \"type\": \"A\",\n            \"class\": \"IN\",\n            \"ttl\": 300,\n            \"rdlength\": 4,\n            \"rdata\": \"216.239.34.21\"\n        },\n        {\n            \"name\": \"go.dev.\",\n            \"type\": \"A\",\n            \"class\": \"IN\",\n            \"ttl\": 300,\n            \"rdlength\": 4,\n            \"rdata\": \"216.239.32.21\"\n        },\n        {\n            \"name\": \"go.dev.\",\n            \"type\": \"A\",\n            \"class\": \"IN\",\n            \"ttl\": 300,\n            \"rdlength\": 4,\n            \"rdata\": \"216.239.36.21\"\n        },\n        {\n            \"name\": \"go.dev.\",\n            \"type\": \"A\",\n            \"class\": \"IN\",\n            \"ttl\": 300,\n            \"rdlength\": 4,\n            \"rdata\": \"216.239.38.21\"\n        }\n    ]\n}\n```\n\n## Resolver\n\n`google1` is used by default\n\nYou can use these resolvers:\n\n| Name | IP |\n|---|---|\n| cloudflare | 1.1.1.1 |\n| google1 | 8.8.8.8 |\n| google2 | 8.8.4.4 |\n| he | 74.82.42.42 |\n| opendns1 | 208.67.222.222 |\n| opendns2 | 208.67.220.220 |\n| quad9 | 9.9.9.9 |\n\n## Docker\n\n```sh\ndocker container \\\n  run \\\n  --rm \\\n  mxssl/dns:1.0.5 \\\n  dns a golang.com\n```\n\n## Development\n\n[Mage](https://github.com/magefile/mage) is used as an alternative to `make`.\n\n```sh\nmage -l\nTargets:\n  build                  the app\n  clean                  delete compiled binary\n  dockerBuild            build container with latest tag\n  dockerRelease          build and push container to the registry\n  dockerTestRun          test run latest container\n  gitHubRelease          run goreleaser\n  gitHubReleaseDryRun    goreleaser dry run\n  lint                   the app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxssl%2Fdns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxssl%2Fdns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxssl%2Fdns/lists"}