All I’m trying to do is get Virtualmin setup on a new OS. So that’s what I’ve done. Here are the fact that I believe are important when starting to install…
pfSense assigns a fixed IP to the network adapter on this new server automatically based on MAC Address.
Server network interface is set to DHCP.
Install Ubuntu Server 18.04 LTS from USB key with OpenSSH so I can work from laptop.
I went ahead and added a virtual server to the setup which is the same domain as the name server and it created DNS records and suddenly DNS tools could see the name server and resolution happens…but:
It also added my internal IP address as a an A record, publishing it to the world.
But this all seems to be strange, backwards behavior. The hostname of the server was set upon running the initial setup script as ns1.domain.com. The last time I remember installing Virtualmin, the start of authority for the name server’s hostname domain was automatically setup and moving through the post installation wizard was a breeze.
Yeah, the problem stemmed from the authority not being written to anything DNS upon installation of Virtualmin. It wasn’t until I added the first virtual server that the rest of the world could see the system. I’ve had this setup on another system for a few years, but recently had a pretty hefty disaster…so… ;).
I dont actually use this method myself…i use domain registrars dns hosting (pointing an a record for each domain at my vps) rather than my own nameservers. It has its drawbacks of course (ie if i ever wanted to change server ip address), however, it allows me to just focus on my own system administration without bothering bind dns as well.
I have my hands full getting my head around the vps administration and email for now.