1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How can i change BIND DNS zone serial?

Discussion in 'Plesk for Linux - 8.x and Older' started by designer, Dec 1, 2005.

  1. designer

    designer Guest

    All serials seems automatically configured by PLESK and there is no possibility to change serial using http control panel. Yes, i can change zone files itself, but i'm not sure what would happen on next DNS update from control panel - Would it take "serial" from zone file or overwrite serial with new generated one? Anybody knows for sure?

  2. PSi_101

    PSi_101 Regular Pleskian

    Oct 5, 2004
    Likes Received:
    This is what support told me when I asked them a similair question.

    "It is possible to set serial value for dns zone to zero (4294967296) and wait until other dns-servers refresh their information and only after it update your dns-server with new serial, as decribed here in chapter 7:
    Please read that documentation before implementing what I suggest.

    I suggest doing follow steps:

    1. Deny all changes for your dns zones (you can make it by canceling permission "DNS zone management" to all of your clients for 2 days) .

    2. Set serial for all zones to 4294967296 (232) both master and slave servers. You could create a script or do it manually.

    3. restart named.

    4. Wait until all the dns-servers in the world take this serial. It depends on
    your $TTL of zones ( by default it is 86400 = 1 day )

    5. Rebuild all the zones to set standard serial back:
    # export domains=`mysql -Ns -uadmin -pPASSWORD -Dpsa -e"select name from domains"`
    # for i in $domains ; do /usr/local/psa/admin/sbin/dnsmng update $i ; done"

    Hope this helps.
  3. ShadowMan@

    ShadowMan@ Guest

    Plesk keeps a running serial which it will use upon the next DNS change. It is in the 'psa' database, 'misc' table, 'stat_timestamp' param

    If you manually change the serial in the /var/named/run-root/var/ zone files, then the next time any domain changes are done in Plesk GUI, it will then look to the value in the database and update the serial in the zone file. So you could always change the database value immediately before or after making your manual changes to the zone files.

    I know for sure that Plesk will not take any existing values from a zone file, it gets all of it's info from their database in different tables, then uses that info to totally rewrite zone files.