{"id":20850593,"url":"https://github.com/multiformats/go-multiaddr-dns","last_synced_at":"2026-01-29T03:11:29.271Z","repository":{"id":18281196,"uuid":"83939497","full_name":"multiformats/go-multiaddr-dns","owner":"multiformats","description":"Go library and CLI tool for /dns4, /dns6, /dnsaddr multiaddr resolution","archived":false,"fork":false,"pushed_at":"2025-03-29T08:32:29.000Z","size":1145,"stargazers_count":30,"open_issues_count":12,"forks_count":18,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-12T04:49:01.072Z","etag":null,"topics":["dns","dnsaddr","madns","multiaddr","resolve"],"latest_commit_sha":null,"homepage":"https://multiformats.io/multiaddr","language":"Go","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/multiformats.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,"zenodo":null}},"created_at":"2017-03-05T02:38:05.000Z","updated_at":"2025-03-28T13:06:36.000Z","dependencies_parsed_at":"2025-01-08T00:07:19.838Z","dependency_job_id":"afc5d66d-0595-481d-98e4-690dd560e826","html_url":"https://github.com/multiformats/go-multiaddr-dns","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fgo-multiaddr-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fgo-multiaddr-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fgo-multiaddr-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiformats%2Fgo-multiaddr-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multiformats","download_url":"https://codeload.github.com/multiformats/go-multiaddr-dns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"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","dnsaddr","madns","multiaddr","resolve"],"created_at":"2024-11-18T03:10:29.929Z","updated_at":"2026-01-29T03:11:24.252Z","avatar_url":"https://github.com/multiformats.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-multiaddr-dns\n\n\u003e Resolve /dns4, /dns6, and /dnsaddr multiaddrs.\n\n```sh\n\u003e madns /dnsaddr/ipfs.io/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n/ip6/2604:a880:1:20::1d9:6001/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n/ip6/fc3d:9a4e:3c96:2fd2:1afa:18fe:8dd2:b602/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n/dns4/jupiter.i.ipfs.io/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n/dns6/jupiter.i.ipfs.io/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx\n```\n\n\nIn more detail:\n\n```sh\n\u003e madns /dns6/example.net\n/ip6/2001:db8::a3\n/ip6/2001:db8::a4\n...\n\n\u003e madns /dns4/example.net/tcp/443/wss\n/ip4/192.0.2.1/tcp/443/wss\n/ip4/192.0.2.2/tcp/443/wss\n\n# No-op if it's not a dns-ish address.\n\n\u003e madns /ip4/127.0.0.1/tcp/8080\n/ip4/127.0.0.1/tcp/8080\n\n# /dnsaddr resolves by looking up TXT records.\n\n\u003e dig +short TXT _dnsaddr.example.net\n\"dnsaddr=/ip6/2001:db8::a3/tcp/443/wss/ipfs/Qmfoo\"\n\"dnsaddr=/ip6/2001:db8::a4/tcp/443/wss/ipfs/Qmbar\"\n\"dnsaddr=/ip4/192.0.2.1/tcp/443/wss/ipfs/Qmfoo\"\n\"dnsaddr=/ip4/192.0.2.2/tcp/443/wss/ipfs/Qmbar\"\n...\n\n# /dnsaddr returns addrs which encapsulate whatever /dnsaddr encapsulates too.\n\n\u003e madns example.net/ipfs/Qmfoo\ninfo: changing query to /dnsaddr/example.net/ipfs/Qmfoo\n/ip6/2001:db8::a3/tcp/443/wss/ipfs/Qmfoo\n/ip4/192.0.2.1/tcp/443/wss/ipfs/Qmfoo\n\n# TODO -p filters by protocol stacks.\n\n\u003e madns -p /ip6/tcp/wss /dnsaddr/example.net\n/ip6/2001:db8::a3/tcp/443/wss/ipfs/Qmfoo\n/ip6/2001:db8::a4/tcp/443/wss/ipfs/Qmbar\n\n# TODO -c filters by CIDR\n\u003e madns -c /ip4/104.236.76.0/ipcidr/24 /dnsaddr/example.net\n/ip4/192.0.2.2/tcp/443/wss/ipfs/Qmbar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiformats%2Fgo-multiaddr-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultiformats%2Fgo-multiaddr-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiformats%2Fgo-multiaddr-dns/lists"}