Bind Module: 127.0.0.1 set for master on slave DNS

I recently noticed this happening when I found my slave DNS server’s were not resolving any new domains I created. Apparently this “bug” started on a recently update to Webmin, not sure which one.

I have setup webmin’s BIND module to automatically create slave zones on a secondary server through RPC.

The problem is that the slave zone is created with "masters {127.0.0.1;};" in the named.conf file. Thus resulting in the following error: "received notify for zone not authoritative"

This isn’t a bug. It’s a problem with your /etc/hosts file. You’ve got your hostname in /etc/hosts pointing to the loopback address, which is nonsensical in a production server with a permanent public IP.

Edit /etc/hosts and change the hostname to point to a real IP, and make 127.0.0.1 point to localhost.localdomain localhost

Thanks, don’t know how that got their, it must have happened when I installed and update on the OS.