Remember to remove 127.0.0.1 from DNS!

2 posts / 0 new
Last post
#1 Sun, 01/27/2013 - 03:19
jasongayson

Remember to remove 127.0.0.1 from DNS!

Just as a friendly reminder to anyone finding this via Google, this is the PROPER way to turn off the BIND server in Webmin/Virtualmin, if you don't need to run DNS on your server.

  • Go into Webmin: System: Bootup and Shutdown.

  • Place a checkmark next to "bind" or "named."

  • Scroll down and click "Disable Now and On Boot."

  • Go into Webmin: Networking: Network Configuration: Hostname and DNS Client.

  • Remove 127.0.0.1 from the list of DNS servers.

Most people never do the final step, so their servers will ALWAYS be trying 127.0.0.1 (local lookup) as the FIRST action on ANY name resolution, even if it's a domain we've encountered before. Keeping that entry when there's no server running locally means that there's an extra 0.5 seconds or so of delay before EVERY connection that's ever done through hostname rather than IP.

So, remember: Disable that local lookup after you've disabled BIND! Otherwise you will have severe and permanent performance issues!

Even the official Virtualmin documentation forgets to do this extremely important step (see http://www.virtualmin.com/documentation/provisioning/clients).

Tue, 09/17/2013 - 18:17
phillipwilhelm

I've done this and it doesn't work. Should I keep the resolution order to include DNS? When i remove the 127.0.0.1 it also updates the /etc/resolv.conf file as well. I assume this is what is needed to be fixed with BIND disabled.

Should these be added in the resolv.conf file? 4.2.2.2 8.8.8.8

Topic locked