Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What Parameters are required to retrieve the zone file version, when using the linux "dig" command (of any of the "Root DNS" servers/zonefiles like versign etc...)?

Thanks jens

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You probably want the "serial number", which is part of the SOA record:

$ dig stackoverflow.com soa
; [lots of output snipped]

;; ANSWER SECTION:
stackoverflow.com.      86400   IN      SOA     ns1.p19.dynect.net. jatwood.stackoverflow.com. 2009090940 3600 600 604800 60
$ dig +short google.com soa
ns1.google.com. dns-admin.google.com. 1415583 7200 1800 1209600 300

Serial number is the 3rd field: 2009090940 and 1415583 in these examples.

share|improve this answer
    
Thank you very much!!! –  user35251 May 16 '10 at 21:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.