DNS/BIND troubleshooting: request a domain’s SOA using dig

Contributor Icon Contributed by qmchenry  
Tag Icon Tagged: BIND and DNS  


To retrieve the SOA for the domain tech-recipes.com, use:

dig soa tech-recipes.com

and look for the ANSWER SECTION for the response. To get a short version without all of the extra information, use

dig +short soa tech-recipes.com

 

1 Comment -


  1. Mactard said on January 7, 2011

    Hi,

    Thank you very much for the ’soa’ command, it was exactly what I was looking for. One question I had though was is there a way to format what prints out in a human readable format? And I actually found the answer elsewhere and thought I’d add it here:

    #:~$ dig soa tech-recipes.com @8.8.4.4 +multiline

    ; > DiG 9.6-ESV-R3 > soa tech-recipes.com @8.8.4.4 +multiline
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -