Is it possible? / Are there any caveats? to installing this on a subdomain.
Usecase is this. I want to try this out but I want to keep everything I have already setup with dns for example.com, and I want to create miab.example.com for mail in a box.
I have example.com is registered at dynadot, and the dns is pointing at namecheap’s free dns. So I’d be doing the config at namecheap.
DNS records should be like this in your scenario:
At the registrar A record to ns1/ns2.box.miab >> pointing to the MIAB IP.
Then, an NS entry, ns1/ns2.box.miab.ecample.com >> to MIAB IP,
I have a few subdomains setup and this works rather well for that, I do recommend using external DNS though if it’s a subdomain and mail is currently being served on the main domain.
Inspect carefully each entry that you will replicate on cloud flare. Not all records are relevant. Go ahead and enter the records in Cloud Flare. That’s it!
This works. Or should work, (the correct hostnames would be ns1.miab.example.com and ns2.miab.example.com) but does Namecheap support NS records? I don’t think they do. Use Cloudflare or ClouDNS for your domain instead.
Actually, I remember now, the issue with Namecheap is that they do not support 2nd level subdomains for NS records without a LOT of hassle. If your name servers were ns1 and ns2 it wouldn’t be an issue with their crappy interface, but your ns records are ns1.miab and ns2.miab. (Or at least they should have been, if not you did something wrong). So stick with CF or ClouDNS.
So, unlike the other responses, it sounds like you’re telling me that it’s possible to use a subdomain and still use miab as the dns server? As long as I move that main domain from namecheap to CF or Cloudns?
Also a little confused on the names… when using example.com, your box is called box.example.com and your nameservers are called ns1/2.box.example.com. So, I just extrapolated and added my subdomain of “miab” onto my domain, so I figured I’d still add the “box” onto that, leaving me with box.miab.example.com as the name of the “box” and then ns1/2.box.miab.example.com as my nameservers.