resolv.conf reverting on fail

ManuelT

Well-Known Member
Sep 30, 2005
55
0
156
I've got a strange issue happening with my resolv.conf when the service fails and is automagicly restarted it changes the content of resolv.conf to:

ns1.localdomain.com
ns2.localdomain.com

It's an easy fix, simply log on and rewrite the file but if it happens when someones not watching it means the server is unable to deliver mail etc till it's noticed and changed.

Where might it be getting these details from?
 

ManuelT

Well-Known Member
Sep 30, 2005
55
0
156
Just happened again, Have no idea why? does anyone know why this may happen?
 

ManuelT

Well-Known Member
Sep 30, 2005
55
0
156
I don't have a direct account with cPanel, so i'm supposed to go via my reseller however I have a feeling they not going to be much help.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
It sounds like your /etc/resolv.conf file is being managed by the DHCP ( or other network ) service. Could you expound on what you mean by when the service fails and is automagicly restarted. To which service are you referring?