LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2012, 04:10 AM   #1
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Rep: Reputation: 3
Question Internet Not Working on Cent OS 5.5


I have configured LAMP server on Cent OS 5.5 and it is connected with router.all other client machines are connected with router and they are able to access internet but in server its not working.

while i have made changes in /etc/resolv.conf and inserted ip of dns after that i am able to access internet but after restarting network service or server the entries which i have made in resolv.conf are flushed.

can any one help me out to make the entries of resolv.conf permanent.


Thanks
 
Old 03-27-2012, 04:33 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
I would guess dhclient will be overwriting resolv.conf with the settings it is obtaining from your DHCP server.

Two options:
1) Have the DHCP server (on the router) push the correct name server settings.
2) Modfiy dhclient.conf on the problematic server and set the "option domain-name-servers" directive to force dhclient to use the nameserver you want it to.
 
Old 03-28-2012, 03:38 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
chattr +i /etc/resolv.conf

If you need to edit it again, revert with 'chattr -i'

Check current status with lsattr.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no internet access in cent os 5.5 dushyantgohil Linux - Newbie 8 12-23-2011 06:12 AM
how to connect mobile internet in cent os5.2 sathishvegeta Linux - Mobile 2 08-12-2011 04:05 AM
Sendmail not working in cent OS 4.6 ajeet@linux Linux - Server 3 04-14-2010 02:42 AM
Prob setting up internet in cent-os vedaprasad Linux - Newbie 4 03-03-2010 07:16 PM
Keyboard Not working On Cent OS vikasumit Linux - General 9 05-01-2006 02:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration