DNS Zone Error

19 posts / 0 new
Last post
#1 Wed, 05/27/2009 - 14:37

DNS Zone Error

When I check the Virtualmin config it gives me the following error:

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

So I added to the list. I then applied the configuration. I checked again and it gave me the same error. I took a look at the list again and found that all the changes that I made a minute or two before had been erased. I tried again with the same result.

I tried to edit resolv.conf manually, but the same exact thing happened.

Any help is greatly appreciated! :)

uname -a:

Linux 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686 GNU/Linux

I'm running Ubuntu 9.04 (server edition) with the ext4 filesystem.

Wed, 05/27/2009 - 15:11

That sort of thing can happen if another program is changing your resolv.conf file back to what it was -- such as DHCP.

You need to prevent DHCP from overwriting your resolv.conf, or move to a statically configured IP address.

Wed, 05/27/2009 - 15:16 (Reply to #2)

Thanks! I'll try that out. :)

Mon, 06/15/2009 - 12:09

I solved the problem by uncommenting the following line in /etc/dhcp3/dhclient.conf #prepend domain-name-servers;

Thanks for your help! :D

Wed, 05/27/2009 - 16:21

Sorry for posting again but I kept getting a bug error when I tried to edit the post.

The line I uncommented is:
#prepend domain-name-servers;

Thanks again!

Wed, 05/27/2009 - 16:26 (Reply to #5)

Yeah the forum is terrible -- it'll be replaced soon :-)

Glad to hear your got your DNS issue working though. Have a good one!

Mon, 02/13/2012 - 22:18 (Reply to #6)

I had the same problem and solved it by reading this topic. thank you

Mon, 06/22/2009 - 04:35

I'm having the same problem. Which file in CENTOS 5.3 do I need to edit ?

Mon, 06/22/2009 - 04:45 (Reply to #8)


The file for the content he mentioned above is "/etc/dhcp3/dhclient.conf ". -Eric

Mon, 06/22/2009 - 04:48


Can't find /etc/dhcp3/dhclient.conf on centos 5.3. Any idea why?

Mon, 06/22/2009 - 06:22 (Reply to #10)

He's using Ubuntu, so you might have a different version of dhclient.

Look for another dhclient.conf in /etc/, I don't recall where it is in CentOS. -Eric

Sun, 05/22/2011 - 12:03 (Reply to #11)

If you are in Centos 5.6, it is in /etc/dhcpd.conf

Using Virtualmin may be in /etc/dhclient-eth0.conf (...or whichever port you are using, eth1, etc.)

If using Cloudmin KVM, create a file named /etc/dhclient-br0.conf and add it in there.

Mon, 06/22/2009 - 09:41
ronald's picture

you should add the 127 IP through webmins networking module, save it but do not click the apply configuration button as then it will be gone.

Mon, 01/30/2012 - 23:33

Go to Webmin-->Networking-->Hostname and DNS Client--> then

in DNS servers Add:

Save, and re-check the system.

Sat, 02/25/2012 - 14:41

Dear friends,

I installed last version of webmin and virtualmin:

Operating system CentOS Linux 6.2 Webmin version 1.580 Kernel and CPU Linux 2.6.32-71.el6.x86_64 on x86_64

There wasn't any dhclient.conf file even when I installed dhcp .(I created it with a line that mentioned, but was not solved) also in Webmin > networking there isn't Hostname and DNS Client option. What should I do? Please help me

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

when I click on "Re-check and refresh configuration" button .

Sat, 02/25/2012 - 23:12 (Reply to #15)


The option you're looking for is in Webmin -> Networking -> Network Configuration -> Hostname and DNS client.

There's some more details here:


Sat, 04/28/2012 - 04:58

I made all the changes but still the same problem..when i hit aply config in network config...the same error ..to add in dns

Pls help

Sat, 04/28/2012 - 05:52 (Reply to #17)

read more post and i figured it out. Edit /etc/dhcp/dhclient.conf coment out prepend domain-name-servers; Edit in Virtualmin/ System Settings/Virtualmin Configuration/Advence Options/ and make Check resolv.conf for this system? to NO Apply all changes. Restart Network Interfaces Re-check config Done Sorry for my English :)

Sun, 08/09/2015 - 22:05 (Reply to #18)

Just to let Everyone know, Excellent observations. Works perfectly on my installation and fixed the error with DNS.


Topic locked