Hi everyone,
I recently changed the main domain of my HestiaCP installation and I need help adjusting the default nameservers accordingly.
Previously, my panel was located at panel.example.com
, and my default nameservers were:
ns1.example.com
ns2.example.com
I’ve now switched the domain to a new one using this command:
bash
CopyEdit
v-change-sys-hostname panel.newdomain.com
Everything works fine with the new hostname and the panel is accessible. However, I now want to:
- Use
ns1.newdomain.com
andns2.newdomain.com
as my new nameservers. - Make sure Hestia uses them as the default nameservers for all new domains added.
- Update the current setup so existing domains can also be moved to the new nameservers.
I understand that I’ll also need to register the glue records with my domain registrar, and configure BIND properly, but I’d appreciate any guidance on:
- Where in Hestia I should change the default nameserver settings.
- Whether I need to manually update the DNS templates or if there’s a command/script to help.
- Any best practices to avoid breaking the existing DNS zones.
Thanks in advance for your help!