• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How can i change BIND DNS zone serial?

D

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?

Thanks!
 
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:
http://www.faqs.org/rfcs/rfc1982.html
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.
 
Originally posted by designer
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?

Thanks!
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.
 
Back
Top