{"id":34525820,"url":"https://github.com/monmohan/dns-trace","last_synced_at":"2026-06-08T07:03:03.567Z","repository":{"id":146495550,"uuid":"483166504","full_name":"monmohan/dns-trace","owner":"monmohan","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-20T00:57:10.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T16:46:21.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/monmohan.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":"2022-04-19T08:47:19.000Z","updated_at":"2022-04-19T08:51:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c33d8bc6-8868-4f56-b21e-eaf1d79c807c","html_url":"https://github.com/monmohan/dns-trace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monmohan/dns-trace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fdns-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fdns-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fdns-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fdns-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monmohan","download_url":"https://codeload.github.com/monmohan/dns-trace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monmohan%2Fdns-trace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34051772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":"2025-12-24T05:20:37.418Z","updated_at":"2026-06-08T07:03:03.562Z","avatar_url":"https://github.com/monmohan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dns-trace\nA simple tool to recursively resolves IP for a given domain.\nIt always starts at the root server, traversing until the `A` record for the domain is found.\nThe tool also resolves if the domain has a CNAME record by applying the same logic to the CNAME target.\n\n## Simple example\nNote the \".\" in the end of the domain name i.e. Domain name should be [fully qualified](https://en.wikipedia.org/wiki/Fully_qualified_domain_name)\n```go\n$ go run trace.go www.google.com.\n\nResolving domain -\u003e IP query for domain=www.google.com. with nameserver=199.9.14.201:53\nNS = a.gtld-servers.net.  NS IP = 192.5.6.30\nResolving domain -\u003e IP query for domain=www.google.com. with nameserver=192.5.6.30:53\nNS = ns2.google.com.  NS IP = 216.239.34.10\nResolving domain -\u003e IP query for domain=www.google.com. with nameserver=216.239.34.10:53\nGo A record 74.125.24.103\n\nDomain www.google.com. resolved to IP(V4) 74.125.24.103\n```\n## With CNAME Resolution\nThe below example has multiple CNAME mappings\n```go\n$ go run trace.go developer.api.autodesk.com.\n\nResolving domain -\u003e IP query for domain=developer.api.autodesk.com. with nameserver=199.9.14.201:53\nNS = a.gtld-servers.net.  NS IP = 192.5.6.30\nResolving domain -\u003e IP query for domain=developer.api.autodesk.com. with nameserver=192.5.6.30:53\nNS = dns1.p05.nsone.net.  NS IP = 157.53.234.1\nResolving domain -\u003e IP query for domain=developer.api.autodesk.com. with nameserver=157.53.234.1:53\nLooking for cname adsk-prod.apigee.net.\n\nResolving domain -\u003e IP query for domain=adsk-prod.apigee.net. with nameserver=199.9.14.201:53\nNS = a.gtld-servers.net.  NS IP = 192.5.6.30\nResolving domain -\u003e IP query for domain=adsk-prod.apigee.net. with nameserver=192.5.6.30:53\nNS = ns-116.awsdns-14.com.  NS IP = 205.251.194.158\nResolving domain -\u003e IP query for domain=adsk-prod.apigee.net. with nameserver=205.251.194.158:53\nLooking for cname adsk-00.dn.apigee.net.\n\nResolving domain -\u003e IP query for domain=adsk-00.dn.apigee.net. with nameserver=199.9.14.201:53\nNS = a.gtld-servers.net.  NS IP = 192.5.6.30\nResolving domain -\u003e IP query for domain=adsk-00.dn.apigee.net. with nameserver=192.5.6.30:53\nNS = ns-116.awsdns-14.com.  NS IP = 205.251.194.158\nResolving domain -\u003e IP query for domain=adsk-00.dn.apigee.net. with nameserver=205.251.194.158:53\nNS = ns-1346.awsdns-40.org. \nNS IP not found, Run Query for: ns-1346.awsdns-40.org. \nResolving domain -\u003e IP query for domain=ns-1346.awsdns-40.org. with nameserver=199.9.14.201:53\nNS = a0.org.afilias-nst.info.  NS IP = 199.19.54.1\nResolving domain -\u003e IP query for domain=ns-1346.awsdns-40.org. with nameserver=199.19.54.1:53\nNS = g-ns-1640.awsdns-40.org.  NS IP = 205.251.192.168\nResolving domain -\u003e IP query for domain=ns-1346.awsdns-40.org. with nameserver=205.251.192.168:53\nGo A record 205.251.197.66\n\nResolving domain -\u003e IP query for domain=adsk-00.dn.apigee.net. with nameserver=205.251.197.66:53\nGo A record 54.171.246.133\n\nDomain developer.api.autodesk.com. resolved to IP(V4) 54.171.246.133\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonmohan%2Fdns-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonmohan%2Fdns-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonmohan%2Fdns-trace/lists"}