I’ve just set up MIAB and am duly impressed. Superb piece of work.
As I’ve gone along though, I’ve run into an issue I can’t get my mind around: I have an existing machine (let’s call IP address IP1) on which I already run various web servers, JIRA, etc. I’ve set up MIAB on a new VM (hosted on Linode) with IP2. Both machines are running fine. However, if I change my domain registrar (GoDaddy) so that NS1 and NS2 for my domain point to the MIAB box, then I can’t figure out how to manage existing domain names.
Perhaps an example will make it clearer:
Assume my existing domain is MYDOMAIN. On GoDaddy I have an A record pointing MYDOMAIN -> “primary” Linode server. Then I have a few CNAME entries (such as www, jira, etc.) that point to the same server, and multiple NGINX site configurations that respond appropriately based on hostname (e.g. jira.mydomain vs www.mydomain).
Now, I have a new machine—let’s call it mail.MYDOMAIN, running as a new VM on Linode. In my domain registrar, I have set up an A record pointing to mail.MYDOMAIN, and installed MIAB per instructions on that box. I have also added two “hostname” entries—that seems to be what GoDaddy uses for glue records—ns1.mail.MYDOMAIN and ns2.mail.MYDOMAIN pointing to IP2.
If I change my DNS registrar’s nameservers to be ns1.mail.MYDOMAIN and ns2.mail.MYDOMAIN, then how/where do I configure other top-level entries (such as newwebsite.MYDOMAIN, say)?
Now that ns1.mail.MYDOMAIN (which is the MIAB box) is my authoritative nameserver, I’m guessing that I need to define new DNS entries in my domain in /etc/nsd/*.conf somewhere.
If I do that—which looks complicated—will my changes be preserved if I reconfigure / update MIAB?
Any suggestions on what I should do here?