Some time ago I set up Mail In a Box using Glue Nameservers for my domain, example.com.
At the time of setup, I chose to create (and use) the glue nameservers ns1.box.example.com & ns2.box.example.com however, now I would like to change it to ns1.example.com and ns2.example.com respectively.
I know what I have to do on the registrar side, but I am clueless what to do on Mail in a Box’s end. I can see that I have my zonefiles on /etc/nsd/zones and theoretically I could just edit them, but since they’re DNSSEC-signed, I am afraid to end up “bricking” it.
Unless I’m misunderstanding something, I think you can just rerun the install script and provide the different hostname. I did just this at one time. Granted I wasn’t using miab for dns.
Alternatively, backup, create a new installation, and restore.
I guess I would have thought changing the hostname would have changed the name server as well.
If that’s not the case, I think backup and restore is the option.
I’m currently using a work around which I hope it won’t break soon, which is to register the glue nameservers ns1.example.com & ns2.example.com pointing to MIAB’s IP Address, and then applying those Nameservers on the domain itself.
So far the only incompatibility I’ve found is DNSSEC since MIAB is generating the keys for ns1.box.example.com and not ns1.example.com.