Monday, December 7, 2015

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

https://www.virtualmin.com/node/14602



  • decay
  •  06/07/10
  • Offline
Posted: Wed, 2010-06-09 06:48
Hmm, sorry for creating another thread, but thought this deserves its own thread. This question was asked few times in this forum, but i was unable to find a clear answer that i would follow. So it would be awesome if someone can give me a quick fix for this (would help everyone else too)...
Any way, i was trying to run "Re-Check Config" under "System Settings" and i get the following:
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.
 
.. your system is not ready for use by Virtualmin.
any idea how to Fix this?
Im running CentOS 5.5 on a VPS hosted by volume drive (if that helps).
Just to add, im really noob, so it would be greatly appreciated if you can explain a tiny bit in detail what i can/should do... :)
Thanks in advance.

just to add, i can simply

  • decay
  •  06/07/10
  • Offline
  •  Wed, 2010-06-09 06:56
just to add,
i can simply add 127.0.0.1 to the list of DNS servers (this fixes the problem)... but sadly, when ever i restart my vps, the list of dns servers resets back to default and i get this same error again... so i guess every time i restart my server i can remember to add this again, but is there any way to fix this (or prevent this from happening)? O.o

Chances are that's happening

  • andreychek
  •  01/04/09
  • Online Now
  •  Wed, 2010-06-09 09:08
Chances are that's happening due to your IP address being obtained by DHCP. By default, the DHCP client will set a number of things, including the DNS servers.
To prevent that, edit /etc/dhclient-eth0.conf , and make sure there is a line like :
prepend domain-name-servers 127.0.0.1;

In CentOS 7, the file will be

  • Changos
  •  11/16/15
  • Offline
  •  Mon, 2015-11-16 17:19
In CentOS 7, the file will be along the lines of '/etc/dhcp3/dhclient.conf'. Ensure you carry out a restart of the service (service named restart) or reboot the system.
Just add the line as Eric stated.
prepend domain-name-servers 127.0.0.1;
Thanks.


https://www.virtualmin.com/node/14602