InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Networking tutorials

  • DIG quick start tutorial
  • Dig - list all dns records
  • How to view wifi connection speed on Mac
  • Linux iptables - Nat port forwarding using PREROUTING
  • Linux iptables and ip6tables examples
  • Ngrep - quick start guide
  • Use nc to check if a remote port is reachable
  • Use nc to listen to tcp or udp port
  • Use nc to test HTTP url redirection
  • add more DNS servers to Wi-Fi interface on Mac
  • locally override website host to IP mapping
  • use nc to print headers from browser
 
  • Home
  • > Tutorials
  • > Networking

Dig – list all dns records

By admin on Jan 14, 2016

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

Suggested posts:

  1. How to add more DNS servers to Wi-Fi interface on Mac
  2. Mac VirtualBox – enable copy paster from/to Windows 10
  3. How to setup ssl (https) for your site on Ubuntu Linux
  4. Using WordPress custom field for displaying code
  5. How to find recursion stack growth direction using C code
  6. Install Amazon EC2 api tools on Ubuntu Linux
  7. Linux du – find disk usage of directories or files
  8. How to connect to mysql server using ssh port forwarding
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux, Linux/Unix Command Line, Mac, Networking, Tutorials, Ubuntu Linux
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress