Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat


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.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-09-2013
Registered User
 
Join Date: Jan 2013
Location: Bangalore
Posts: 6
Thanks: 4
Thanked 0 Times in 0 Posts
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
Moderator
 
Join Date: Nov 2008
Location: Amsterdam
Posts: 7,350
Thanks: 144
Thanked 1,756 Times in 1,593 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
Registered User
 
Join Date: Jun 2011
Posts: 450
Thanks: 13
Thanked 77 Times in 74 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
Registered User
 
Join Date: Jan 2013
Location: Bangalore
Posts: 6
Thanks: 4
Thanked 0 Times in 0 Posts
Thank you All
Sponsored Links
Reply

Tags
linux, unix

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 06:38 AM.