Issue on resolv.conf | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Issue on resolv.conf

Red Hat


Tags
linux, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2013
Pradipta Kumar Pradipta Kumar is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 13 February 2014, 7:35 AM EST
Location: Bangalore
Posts: 8
Thanks: 4
Thanked 1 Time in 1 Post
Display Issue on resolv.conf

Hi all,

I am facing issue while I have updated in resolv.conf, after nework service restart, it was automatically deleted IP from resolv.conf file.
Could you please let me know what is the reason resolv.conf deleted any IP which I have manually updated, but it store only my router IP permanently.

Advance thanks for helping..

Code:
# vi /etc/resolv.conf
 
# Generated by NetworkManager
search server.com
nameserver 192.168.2.4
nameserver 192.168.2.1



Code:
# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/5
[ OK ]


Code:
cat /etc/resolv.conf
# Generated by NetworkManager
search server.com
nameserver 192.168.2.1


Last edited by Scott; 01-09-2013 at 10:49 AM.. Reason: Please use code tags
Sponsored Links
    #2  
Old 01-09-2013
Scrutinizer's Avatar
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 20 April 2014, 8:30 PM EDT
Location: Amsterdam
Posts: 8,878
Thanks: 230
Thanked 2,141 Times in 1,922 Posts
It says # Generated by NetworkManager so I would look there for an answer...
The Following User Says Thank You to Scrutinizer For This Useful Post:
Pradipta Kumar (01-11-2013)
Sponsored Links
    #3  
Old 01-09-2013
admin_xor's Avatar
admin_xor admin_xor is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 8 April 2014, 5:55 AM EDT
Posts: 452
Thanks: 13
Thanked 79 Times in 76 Posts
You can safely turn off the NetworkManager service. It's good for a Desktop computer but not for a server.

Code:
chkconfig NetworkManager off
service NetworkManager stop

The Following User Says Thank You to admin_xor For This Useful Post:
Pradipta Kumar (01-11-2013)
    #4  
Old 01-11-2013
Pradipta Kumar Pradipta Kumar is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 13 February 2014, 7:35 AM EST
Location: Bangalore
Posts: 8
Thanks: 4
Thanked 1 Time in 1 Post
Thank you All
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
resolv.conf jld Ubuntu 4 05-08-2010 10:24 AM
resolv.conf Ex-Capsa UNIX for Dummies Questions & Answers 3 07-03-2009 09:22 AM
resolv.conf aliahsan81 Shell Programming and Scripting 8 10-14-2008 02:19 AM
Suse 10 resolv.conf kjbaumann SuSE 2 07-15-2008 12:45 PM
/etc/resolv.conf rpnhavoc IP Networking 1 02-11-2002 12:04 PM



All times are GMT -4. The time now is 10:01 PM.