github.com/jbenet/go-dnslink/dnslink


Properties

Last built 1 year ago using go version go1.5.1 linux/amd64 and 61 seconds of time

Downloads
Filename
File Size
 
dnslink_master_darwin-386.zip
1.1MiB
dnslink_master_darwin-amd64.zip
1.2MiB
dnslink_master_linux-386.zip
1.1MiB
dnslink_master_linux-amd64.zip
1.2MiB
dnslink_master_linux-arm.zip
1.1MiB
dnslink_master_windows-386.zip
984KiB
dnslink_master_windows-amd64.zip
1.0MiB
Project-Readme for this version

dnslink - resolve dns links in TXT records

This is a simple commandline tool to resolve dnslink records. It is built with the go-dnslink package.

For more information about dnslink, see

Install

Compile with Go

go get -u github.com/jbenet/go-dnslink/dnslink

Or download prebuilt binaries from Gobuilder:

Usage

> 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

Examples

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