Q.How do I find out the DNS authority record (SOA) for any DNS domain under UNIX / Linux shell?
A. You can easily find out (SOA) start of authority record using command such as dig or host under UNIX and Linux like operating systems. SOA specifies authoritative information about a DNS zone, including the primary name server, the email of the domain administrator, the domain serial number, and several timers relating to refreshing the zone.
Display SOA using host command
$ host -t soa {domain.com}
$ host -t soa cyberciti.com
Sample output:
cyberciti.com has SOA record ns1.nixcraft.net. vivek.nixcraft.com. 2009012202 10800 3600 604800 3600
Display SOA using dig command
$ dig SOA {domain.com}
$ dig SOA cyberciti.com
Sample output:
; <<>> DiG 9.5.0-P2 <<>> SOA cyberciti.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52962
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3
;; QUESTION SECTION:
;cyberciti.com. IN SOA
;; ANSWER SECTION:
cyberciti.com. 10518 IN SOA ns1.nixcraft.net. vivek.nixcraft.com. 2009012202 10800 3600 604800 3600
;; AUTHORITY SECTION:
cyberciti.com. 1088 IN NS ns2.nixcraft.net.
cyberciti.com. 1088 IN NS ns1.nixcraft.net.
cyberciti.com. 1088 IN NS ns3.nixcraft.net.
;; ADDITIONAL SECTION:
ns3.nixcraft.net. 63071 IN A 208.43.78.162
ns1.nixcraft.net. 156291 IN A 208.43.138.52
ns2.nixcraft.net. 156291 IN A 75.126.168.152
;; Query time: 226 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Feb 5 11:44:40 2009
;; MSG SIZE rcvd: 196Replace cyberciti.com with your actual domain name for which you are trying to locate the DNS Authority.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 2 comments… read them below or add one }
give this command $ dig soa {domain.com}
or