Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default DNS Synchronisation - How is newest zone determined?

    When WHM performs a DNS synchronisation, what information does it use to determine the newest zone?

    I notice there is a comment at the top of each zone file that looks like this - ; cPanel first:11.26.8-BETA_48361 latest:11.26.8-BETA_48361 Cpanel::ZoneFile::VERSION:1.3 mtime:1284690458

    Is the "mtime:1284690458" section used to determine and compare the date of each zone file?

  2. #2
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default

    I think I've found the answer - the zone's "age" is determined by it's serial number.

  3. #3
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    Hi mikelegg,

    That's correct. The serialnum (serial number) will determine the modification date and revision (for that day) of an SOA and be used to determine authority between two zone files for the same zone (say, when syncing). It is also used in some cases by zone editors, i.e. if you request to add a record to a file, and you specify a serialnum that is not equal to the current serialnum, the editor will reject the addition, complaining that you're behind the curve and should read the zone file again, verify you addition is still valid and use the correct serialnum. (well, it won't literal say that , but that's usually the intent of the error message). I'm sure that cPanel has similar mechanisms in various places, if only regarding syncing and clustering, however I'm only familiar with it in the cPanel context concerning some API stuff I've been testing lately.

    Hope things continue to go your way mikelegg.

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  4. #4
    Member
    Join Date
    Mar 2005
    Posts
    317

    Default

    Thanks for clarifying that David.

    I have some more questions, but I'll open a new thread because the topic is slightly expanded.

Similar Threads & Tags
Similar threads

  1. Domain poiting to a determined IP, asking to validate email
    By tangowebs in forum New User Questions
    Replies: 1
    Last Post: 02-03-2010, 05:37 PM
  2. Replies: 3
    Last Post: 01-18-2010, 10:11 PM
  3. DNS synchronisation between WHM and non-WHM server
    By kornaz in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-24-2006, 03:39 PM
  4. how to limit the use of cpu for determined username?
    By phphack in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2005, 07:23 AM
  5. DNS Cluster Synchronisation
    By quortex in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-15-2005, 01:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube