OpenVZ Forum


Home » General » Support » resolv.conf wont stay on reboot
resolv.conf wont stay on reboot [message #30316] Wed, 21 May 2008 03:07 Go to next message
Light Speed is currently offline  Light Speed
Messages: 2
Registered: May 2008
Junior Member
Running CentOS 5.1 in a VE and when the OS is rebooted the contents of the resolv.conf file are overwritten with what I believe are the DNS server IPs of the HN.

Why is this happening and how can I stop it?

I want to stop having to manually re-add the correct IP entries after every reboot!

I am the end user of the VE and not the HN admin.

[Updated on: Wed, 21 May 2008 03:08]

Report message to a moderator

Re: resolv.conf wont stay on reboot [message #30322 is a reply to message #30316] Wed, 21 May 2008 10:15 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1. You can ask HN admin to set inside your VE the correct nameserver. (via --nameserver option)

2. If it's impossible try to add appropriate commands for example in /etc/rc.local file to change /etc/resolv.conf file.
Re: resolv.conf wont stay on reboot [message #30325 is a reply to message #30316] Wed, 21 May 2008 11:02 Go to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
Light Speed wrote on Wed, 21 May 2008 06:07

Running CentOS 5.1 in a VE and when the OS is rebooted the contents of the resolv.conf file are overwritten with what I believe are the DNS server IPs of the HN.

Why is this happening and how can I stop it?

I want to stop having to manually re-add the correct IP entries after every reboot!

I am the end user of the VE and not the HN admin.


Are you using dhcp client inside VE?
If using http://sourceforge.net/projects/dhcpv6/
or http://www.isc.org/products/DHCP
try tweaking
prepend domain-name-servers dnsrv2,dnssrv2,...
inside /etc/dhclient-eth?.conf

IF using http://roy.marples.name/dhcpcd
add nodns option to dhcpcd daemon
Previous Topic: IO Performance inside VE
Next Topic: RTNETLINK answers: File exists
Goto Forum:
  


Current Time: Thu Apr 18 12:07:39 GMT 2024

Total time taken to generate the page: 0.01656 seconds