≡ Menu
Home > Tutorials > dt: A command line tool to display information about your domain on Linux or Unix system

dt: A command line tool to display information about your domain on Linux or Unix system

The dt command is free and open source tool written in Go language. It is a CLI DNS tool that displays information about your domain name on UNIX-like system.

Feature list

  • Support common records scanning
  • Validate DNSSEC chain
  • Change query speed for scanning
  • Diagnostic of your domain (similar to intodns.com, dnsspy.io)

Installation

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Make sure golang installed on your system. For macOS type:

brew install golang

See this page to grab golang for your operating system. You need to setup golang path as follows:

export PATH=$PATH:$(go env GOPATH)/bin
go env GOPATH

Outputs:

/Users/mrdns/go

So cd into /Users/mrdns/go and run the following command:

cd /Users/mrdns/go
go get github.com/42wim/dt

You should now have dt binary in the bin directory:

ls /Users/mrdns/go/bin/dt

Run it as follows:

/Users/mrdns/go/dt domain
/Users/mrdns/go/dt dnsknowledge.com

Outputs:

NS                 |IP                 |LOC |ASN     |ISP                                         |rtt          |Serial     |DNSSEC   |ValidFrom |ValidUntil
ns1.softlayer.com. |67.228.254.4       |US  |AS36351 |SOFTLAYER - SoftLayer Technologies Inc.,    |313.266262ms |2017022801 |disabled |          |
ns1.softlayer.com. |2607:f0d0:0:f:1::1 |US  |AS36351 |SOFTLAYER - SoftLayer Technologies Inc., US |error        |error      |error    |
ns2.softlayer.com. |67.228.255.5       |US  |AS36351 |SOFTLAYER - SoftLayer Technologies Inc.,    |322.886554ms |2017022801 |disabled | |
ns2.softlayer.com. |2607:f0d0:0:f:2::1 |US  |AS36351 |SOFTLAYER - SoftLayer Technologies Inc., US |error        |error      |error    |

dnsknowledge.com.	86400	IN	NS	ns1.softlayer.com.
dnsknowledge.com.	86400	IN	NS	ns2.softlayer.com.
dnsknowledge.com.	900	IN	SOA	ns1.softlayer.com. support.softlayer.com. 2017022801 7200 600 1728000 43200
dnsknowledge.com.	86400	IN	MX	5 ALT1.ASPMX.L.GOOGLE.com.
dnsknowledge.com.	86400	IN	MX	1 ASPMX.L.GOOGLE.com.
dnsknowledge.com.	86400	IN	MX	5 ALT2.ASPMX.L.GOOGLE.com.
dnsknowledge.com.	86400	IN	MX	10 ASPMX3.GOOGLEMAIL.com.
dnsknowledge.com.	86400	IN	MX	10 ASPMX2.GOOGLEMAIL.com.
dnsknowledge.com.	86400	IN	TXT	"v=spf1 include:_spf.google.com ~all"

DNSSEC
	 FAIL: Validation failed. No DNSKEY found for dnsknowledge.com. on 67.228.255.5
NS
	 ERR : NS scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : NS scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 OK  : NS of all nameservers are identical
	 OK  : Multiple nameservers found
	 OK  : Your nameservers are in different subnets.
	 WARN: Nameservers are all on the same AS (AS36351). This is a single point of failure.
	 OK  : IPv4 and IPv6 nameservers found.
	 OK  : All nameservers are authoritative.
	 OK  : All nameservers report they are not allowing recursive queries.
	 OK  : Your nameservers are also listed as NS at the parent nameservers
	 OK  : Your parent nameservers are also listed as NS at your nameservers
	 OK  : No CNAMEs found for your NS records
GLUE
	 WARN: no glue records found for [67.228.255.5 2607:f0d0:0:f:2::1 67.228.254.4 2607:f0d0:0:f:1::1] in NS of dnsknowledge.com.
SOA
	 ERR : SOA scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : SOA scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 OK  : SOA of all nameservers are identical
	 OK  : Serial format appears to be in the recommended format of YYYYMMDDnn.
	 OK  : MNAME ns1.softlayer.com. is listed at the parent servers.
	 OK  : Your nameservers have public / routable addresses.
MX
	 ERR : MX scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : MX scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 OK  : MX of all nameservers are identical
	 OK  : Multiple MX records found
	 OK  : Your MX records have public / routable addresses.
	 WARN: Same IP 74.125.30.26 is used by multiple MX records [ALT2.ASPMX.L.GOOGLE.com. ASPMX3.GOOGLEMAIL.com.].
	 WARN: Same IP 2607:f8b0:4003:c03::1a is used by multiple MX records [ALT2.ASPMX.L.GOOGLE.com. ASPMX3.GOOGLEMAIL.com.].
	 WARN: Same IP 2607:f8b0:400e:c04::1a is used by multiple MX records [ALT1.ASPMX.L.GOOGLE.com. ASPMX2.GOOGLEMAIL.com.].
	 OK  : No CNAMEs found for your MX records
	 OK  : All MX records have reverse PTR records
Web
	 ERR : WWW ipv4 scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : WWW ipv6 scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : root ipv4 scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : root ipv6 scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : WWW ipv4 scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 ERR : WWW ipv6 scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 ERR : root ipv4 scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 ERR : root ipv6 scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 OK  : Found a www record
	 OK  : Found a root record
	 OK  : Didn't find a CNAME for the root record
	 OK  : Your www record has a public / routable address.
Spam
	 ERR : DMARC scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : DMARC scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 ERR : SPF scan failed on ns2.softlayer.com. (2607:f0d0:0:f:2::1): dial udp [2607:f0d0:0:f:2::1]:53: connect: no route to host
	 ERR : SPF scan failed on ns1.softlayer.com. (2607:f0d0:0:f:1::1): dial udp [2607:f0d0:0:f:1::1]:53: connect: no route to host
	 WARN: No DMARC records found. Along with DKIM and SPF, DMARC helps prevent spam from your domain.
	 OK  : SPF records found.
	 OK  : SPF records set up restrictively.

dt command usage

Just type:

dt

Outputs:

Usage:
	dt [FLAGS] domain

Example:
	dt icann.org
	dt -debug ripe.net
	dt -debug -scan yourdomain.com

Flags:
  -debug
    	enable debug
  -qps int
    	Queries per seconds (per nameserver) (default 10)
  -scan
    	scan domain for common records

For latest source code and more information visit https://github.com/42wim/dt

{ 2 comments… add one }
  • Madhav Bhadre April 19, 2019, 10:59 pm

    Dns addres error

  • Madhav Bhadre April 19, 2019, 10:59 pm

    Ip address

Leave a Comment