Dig – list all dns records

To list all DNS records of a domain name use the following dig command (after replacing microsoft.com with desired domain)

$ dig microsoft.com any
;; Truncated, retrying in TCP mode.

; <<>> DiG 9.8.3-P1 <<>> microsoft.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54802
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;microsoft.com.			IN	ANY

;; ANSWER SECTION:
microsoft.com.		2422	IN	A	104.40.211.35
microsoft.com.		2422	IN	A	104.43.195.251
microsoft.com.		2422	IN	A	23.100.122.175
microsoft.com.		2422	IN	A	23.96.52.53
microsoft.com.		2422	IN	A	191.239.213.197
microsoft.com.		20422	IN	NS	ns2.msft.net.
microsoft.com.		20422	IN	NS	ns3.msft.net.
microsoft.com.		20422	IN	NS	ns4.msft.net.
microsoft.com.		20422	IN	NS	ns1.msft.net.
microsoft.com.		2422	IN	SOA	ns1.msft.net. msnhst.microsoft.com. 2016011310 7200 600 2419200 3600
microsoft.com.		2422	IN	MX	10 microsoft-com.mail.protection.outlook.com.
microsoft.com.		2422	IN	TXT	"v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all"
microsoft.com.		2422	IN	TXT	"FbUF6DbkE+Aw1/wi9xgDi8KVrIIZus5v8L6tbIQZkGrQ/rVQKJi8CjQbBtWtE64ey4NJJwj5J65PIggVYNabdQ=="

;; Query time: 62 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Jan 14 09:53:02 2016
;; MSG SIZE  rcvd: 649
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments