Virtualmin is configured to setup DNS zones but this system is not setup to use itself as a DNS server

Virtualmin is configured to setup DNS zones but this system is not setup to use itself as a DNS server

Virtualmin is configured to setup DNS zones but this system is not setup to use itself as a DNS server

Failed to save enabled features : Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.

This is a generic error telling the website administrator that the local DNS entries are being checked using external methods. Most of the time, this wont be a real issues but it causes a performance spike which depends highly on where the DNS entries are being searched.

On the case of Webmin/Virtualmin, the system will try to block you from creating new virtual host until this issue get’s resolved but either turning off the local DNS which is being controlled by BIND module or by correcting the problem being complained by your OS.

Fixing the Local DNS Inquiry

The fix is pretty simple and involves by logging to your server via Secured Shell with ROOT capability. I am assuming you have already done the basic steps when starting a new server.

Open up  /etc/resolv.conf and add the following entry at the bottom.

Save your new resolv.conf file. Newer DNS checking will now see the localhost entry (IP 127.0.0.1) and will start scanning your local BIND settings before doing a third-party DNS search.


Explanation

When the error Failed to save enabled features : Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page kicks in. The server was trying to tell you that you have a working DNS but DNS lookup was not being performed locally. Sometimes you can just ignore this but it will mess up DNS resolution on your domains.

NOTE:

If you are hosting your own DNS server, make sure to TURN OFF your network cards automated IP assignment via DHCP. Use your static IP instead of DHCP. If you don’t know how, just leave a comment and leave your OS name and Version Number.

 

coderinthebox

The TechnoJunkie of the group who studied engineering but got stuck with software development. Remember kids, 90% of your problems can be solved by marketing. Solving the other 10% just requires good procrastination skills.

You may also like...

3 Responses

  1. swelljoe says:

    You can also alter the resolv.conf file in Webmin itself, by browsing to Webmin (tab in the upper left corner)->Networking->Network Configuration->Hostname and DNS client->DNS Servers. Then click Save (you don’t need to click the “Apply Configuration” button on the main network configuration page, as the resolv.conf is checked every time a resolver request is made).

    The reason this test exists is to insure that the “Preview website” features work, even before DNS resolution is working for domains (i.e. even before you have registered the domain and have glue records pointing to your DNS servers).

    Thanks for checking out Virtualmin!

  1. February 24, 2016

    […] server configuration after completing the steps above and potentially generate a warning of “Virtualmin is configured to setup DNS zones but this system is not setup to use itself as a DNS serv…“. Fixing this warning is pretty easy by opening the Webmin tab and going to […]

Leave a Reply

%d bloggers like this: