r/linuxadmin • u/Which_Video833 • Dec 13 '25
Migrate dns slave and master to new Linux host
/r/dns/comments/1plo8g0/migrate_dns_slave_and_master_to_new_linux_host/
5
Upvotes
r/linuxadmin • u/Which_Video833 • Dec 13 '25
3
u/dualboot Dec 13 '25
Just to avoid incredibly uncomfortable situations in the future, I recommend using the modern nomenclature of "Primary" and "Secondary."
1
u/GamerLymx Dec 15 '25
assuming you are using bind9 (not chrooted) first create a slave/secundary host, set the ip, hostname, etc. copy *.conf files from /etc/named/. check if everything is working and if the zone files are transferred.
then do the same with master, copy the *.conf files from /etc/named and files from /var/named
3
u/wezelboy Dec 13 '25
The might be some files in /etc you need to copy depending on your setup. I'd do primary first cause there might be a slight chance of serial number weirdness of you do secondary first.