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: ;; ->>HEADERcyberciti.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: 196
Replace cyberciti.com with your actual domain name for which you are trying to locate the DNS Authority.
🐧 2 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
give this command $ dig soa {domain.com}
or