Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default Mass DNS change - increment serial required?

    Hi,

    I need to do a mass update to all my zone files under /var/named. I understand that incrementing the serial number (by 1) is important, but I'm wondering if that is really required in this case? All I am changing in the zone files is the e-mail address in

    @ IN SOA ns1.myhost.com. olduser.myhost.com. ( ...

    Thanks,

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I don't think it's necessary to increment the numbers, but I may be wrong. I think without incrementing the numbers, it may just take longer for the changes to be recorded elsewhere.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The serial numbers are only used by secondary DNS servers when deciding whether to accept a zone update or not, as far as I remember.

    If you make a mass change on the server, the simplest way to get named to digest it is just to stop and restart it with "service named restart" or just rebooting the server (which has the same effect).

  4. #4
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    Quote Originally Posted by brianoz
    The serial numbers are only used by secondary DNS servers when deciding whether to accept a zone update or not, as far as I remember.

    If you make a mass change on the server, the simplest way to get named to digest it is just to stop and restart it with "service named restart" or just rebooting the server (which has the same effect).
    How about the DNS caching that ISP's all over the world do, used on their customers connections ... won't serials not changing affect them?

  5. #5
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    DNS caching looks at TTL values and caches the values for TTL seconds; zone serial numbers don't affect that at all.

    In other words, the caching is individual record based rather than being zone based. Secondaries cache whole zones therefore they use the zone serial number as a basis for working out whether the zone has changed since the last cached version. Same serial number = no need for updating the zone, in Bind/named's mind.

    But don't forget to take into mind that some large ISPs use "dumb" DNS lookup accelerators that incorrectly cache values for up to 24 hours, completely ignoring TTL values specifying shorter cache timeouts. (eg: Bigpond in Australia has been one such ISP, I know there are several in the US).
    Last edited by brianoz; 09-29-2006 at 01:42 PM.

  6. #6
    Member SageBrian's Avatar
    Join Date
    Jun 2002
    Location
    NY/CT (US)
    Posts
    386

    Default

    Interesting.

    What if you just had a script replace the serial number with a brand new number with todays date?

    Or at least, run you mass update, then run a 'mass serial number' script.

    I'm assuming you could probably just make something like this:

    (Keep in mind, this is not a script, and I can't write one. But I can figure the logic)

    Find "Serial #: 2004081401" # I guess you'd make this a wildcard search?

    Replace with "Serial # 2006092901" simply using today's date with a 01

  7. #7
    Member freedog96150's Avatar
    Join Date
    Mar 2005
    Location
    Nevada, USA
    Posts
    68

    Default

    There is a great script for just this at cplicensing.net

    I have use both the 'rebuildnamedzones' and the 'updateserial' scripts with great succes. Remember to backup all original files before you begin.
    **********************
    Brian Frias
    "Without fear, there is no
    courage"
    **********************

  8. #8
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Thanks all for the tips and the link

  9. #9
    JC
    JC is offline
    Member
    Join Date
    Nov 2002
    Posts
    88

    Default

    Quote Originally Posted by brianoz
    DNS caching looks at TTL values and caches the values for TTL seconds; zone serial numbers don't affect that at all.

    In other words, the caching is individual record based rather than being zone based. Secondaries cache whole zones therefore they use the zone serial number as a basis for working out whether the zone has changed since the last cached version. Same serial number = no need for updating the zone, in Bind/named's mind.

    But don't forget to take into mind that some large ISPs use "dumb" DNS lookup accelerators that incorrectly cache values for up to 24 hours, completely ignoring TTL values specifying shorter cache timeouts. (eg: Bigpond in Australia has been one such ISP, I know there are several in the US).
    Thanks for this explanation .... makes sense

Similar Threads & Tags
Similar threads

  1. How to incremental serial number in dns zone?
    By vanessafan in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-30-2011, 03:03 AM
  2. CPanel, DNS, and serial number
    By Julien PHAM in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-03-2009, 08:12 AM
  3. mass change on all dns zones.
    By IRCBrasil in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-14-2006, 10:03 AM
  4. Mass DNS entry change?
    By tmellon in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-25-2004, 05:54 PM
  5. Change DNS SOA serial number
    By AusJeff in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-18-2003, 09:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube