DNS zones on secondary server have wrong master IP

Hello! I am using the Cluster DNS feature to automatically create zones on a slave DNS server when adding a domain in Virtualmin. Problem is, on the secondary server those zones are getting the IP 127.0.1.1 as master IP, which is obviously wrong. I checked the config and couldn't find any evidence of misconfiguration. Any ideas what could be wrong?

Status: 
Closed (fixed)

Comments

Looks like Virtualmin isn't working out the IP address of the master system properly - this is usually done by finding the IP address for the hostname, but sometimes that is set to 127.0.0.1 in /etc/hosts .

The way to force use of a specific IP is to go to Webmin -> Servers -> BIND DNS Server -> Module Config -> Cluster slave servers , and set "Default master server IP for remote slave zones" to the right IP. This will only apply to zones created from now on though..

I always feel so embarassed when I submit an issue and you come up with these simple solutions, which I should have found out by myself. I fixed the /etc/hosts file actually, I guess it will be fine now. No idea why I didn't check that file after installing the virtual instance. I do usually... Thank you, as always.

Automatically closed -- issue fixed for 2 weeks with no activity.