• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to change DNS zone serial number?

klowet

Basic Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.57 #2
Hi

I should have to upgrade the serial number of a DNS zone manually.
How can I do this in Plesk?

Situation: a migration from another server where the zone has a higher serial number (luckily it has format yyyymmddnn).

Thank you
 
Hi,

Probably, it is not the most technical solution, but I think the most simplest :)
Create and remove some temporary record in the zone, this action will update the serial on Plesk to the current date. Or do you have to use some date from the future?
 
That's indeed an option, but quite intensive for +30 domains.
Or do you have to use some date from the future?
No future dates, but a higher serial number (in the two last digits) at the end.

Is there an (CLI) option to increase the serial number of the zone files? I should manually edit the zone file, but that won't work.
 
All available CLI commands for DNS record management - dns: DNS Zones on Domains. Unfortunately, there is no single command to set specific Serial for the zone. I do not recommend to modify zone files directly. As an option, you can change format to "timestamp" and back to "yyyymmddnn", it will generate new Serial with actual date.

Code:
root@panel:~# cat /var/named/run-root/var/example.com | grep Serial
                        2023112607      ; Serial

root@panel:~# plesk bin dns --update-soa example.com -soa-serial-format timestamp
SUCCESS: Updating SOA record for example.com
root@panel:~# cat /var/named/run-root/var/example.com | grep Serial
                        1701807889      ; Serial

root@panel:~# plesk bin dns --update-soa example.com -soa-serial-format yyyymmddnn
SUCCESS: Updating SOA record for example.com
root@panel:~# cat /var/named/run-root/var/example.com | grep Serial
                        2023120501      ; Serial
 
Back
Top