This is a simple commandline tool to resolve dnslink records. It is built with the go-dnslink package.
For more information about dnslink, see
- This note: jbenet/random-ideas#28
Compile with Go
go get -u github.com/ipfs/go-dnslink/dnslink
> dnslink --help
dnslink - resolve dns links in TXT records
USAGE
dnslink <domain>
EXAMPLE
> dnslink blog.ipfs.io
/ipns/ipfs.io/blog
> dnslink ipfs.io blog.ipfs.io
ipfs.io: /ipfs/QmR7tiySn6vFHcEjBeZNtYGAFh735PJHfEMdVEycj9jAPy
blog.ipfs.io: /ipns/ipfs.io/blog
> dnslink foo.bar
error: lookup foo.bar on 10.0.1.1:53: no such host
Resolve a single domain
> dnslink blog.ipfs.io
/ipns/ipfs.io/blog
Resolve multiple domains
> dnslink ipfs.io blog.ipfs.io
ipfs.io: /ipfs/QmR7tiySn6vFHcEjBeZNtYGAFh735PJHfEMdVEycj9jAPy
blog.ipfs.io: /ipns/ipfs.io/blog
Error handling
> dnslink foo.bar
error: lookup foo.bar on 10.0.1.1:53: no such host