#1 (permalink)  
Old 02-08-2010, 10:57 AM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Jan 2006
Posts: 605
4u123 is on a distinguished road
resolv.conf IP keeps re-appearing!

Hi, can you think of any reason why an IP address would keep re-appearing in /etc/resolv.conf after I removed it?

That IP isnt configured in the WHM resolvers. I have no idea where its coming from but it seems if I reboot the server, it comes back.

Using centos5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-08-2010, 12:29 PM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Jan 2006
Posts: 605
4u123 is on a distinguished road
I just worked out - that IP is the address of the main domain used in the hostname of the server.

So if the server is server001.mydomain.com - the IP address of "mydomain.com" is automatically added to resolv.conf as a nameserver.

Any idea How I stop this from happening?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-08-2010, 04:13 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,494
cPanelDon is on a distinguished road
By stock-default behavior, cPanel/WHM does not automatically change the resolver configuration upon boot.

Via root SSH access to the affected system, please provide the output from the following command:
Code:
# cat /var/cpanel/envtype && echo
__________________
For hands-on assistance please reference our new support information page: Where should I go for support?
cPResources: Support Options - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation
-- cPanelDon - Donald Holl, Technical Analyst, cPanel Technical Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-08-2010, 04:31 PM
cPanel Partner NOC
cPanel Partner NOC Badge
 
Join Date: Jan 2006
Posts: 605
4u123 is on a distinguished road
Thanks Don, its Ok I worked it out.

I recently set up a storage network and I've currently got eth1 on each server set to dhcp. Its the dhcp client in centos that seems to be updating resolv.conf.

Edit... For anyone else who has this problem, edit /etc/sysconfig/network and add the line...

Quote:
PEERDNS=no

Last edited by 4u123; 02-08-2010 at 05:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-08-2010, 07:27 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,494
cPanelDon is on a distinguished road
Quote:
Originally Posted by 4u123 View Post
Thanks Don, its Ok I worked it out.

I recently set up a storage network and I've currently got eth1 on each server set to dhcp. Its the dhcp client in centos that seems to be updating resolv.conf.

Edit... For anyone else who has this problem, edit /etc/sysconfig/network and add the line...
Code:
PEERDNS=no
Thank you for the update and additional details regarding the resolution.
__________________
For hands-on assistance please reference our new support information page: Where should I go for support?
cPResources: Support Options - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation
-- cPanelDon - Donald Holl, Technical Analyst, cPanel Technical Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what should /etc/resolv.conf look like? spaceman cPanel and WHM Discussions 15 04-28-2006 03:14 PM
/etc/resolv.conf DataDork cPanel and WHM Discussions 1 05-09-2005 03:59 AM
/etc/resolv.conf what should be there dunno cPanel and WHM Discussions 2 07-18-2003 03:01 PM
resolv.conf elleryjh cPanel and WHM Discussions 8 07-12-2003 11:11 PM
resolv.conf again n2nis cPanel and WHM Discussions 2 01-22-2002 05:30 PM


All times are GMT -5. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc