LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2009, 03:38 AM   #1
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Query regarding /etc/resolv.conf


hello friends,

The /etc/resolv.conf file has 644 permissions with u=rw- owned by root g= r-- owned by root. I have DSL connection in which once I connect to internet, the /etc/resolv.conf file gets written with the DNS server ip of my ISP.

Please let me know how does this function?

2.Also, one more doubt, suppose an office setup with DNS running, how can root user automatically update each client's /etc/resolv.conf file using the same technique above, which otherwise has to be updated manually in each client by the root user?
thank u.

Last edited by saagar; 06-14-2009 at 03:40 AM.
 
Old 06-14-2009, 03:58 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by saagar View Post
hello friends,

The /etc/resolv.conf file has 644 permissions with u=rw- owned by root g= r-- owned by root. I have DSL connection in which once I connect to internet, the /etc/resolv.conf file gets written with the DNS server ip of my ISP.

Please let me know how does this function?
I've already posted on this subject. Please look at this thread:
http://www.linuxquestions.org/questi...light=dhclient
cheers,
jdk
 
Old 06-14-2009, 07:17 AM   #3
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
thanks, but actually I wanted to know how it is possible to write to that file by the ISP even if it does not have root permissions?
also please look in to my 2 nd query.

thanks
 
Old 06-14-2009, 08:11 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I think it has to do with how DHCP is configured in the first place. Remember all the configuration files created with you run DHCP go into folders where you need root privileges to write. So it's actually your system that is writing those files or modifying them, in reponse to what is happening on your internet connection. I hope that's clear.
cheers,
jdk
 
Old 06-14-2009, 02:51 PM   #5
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Original Poster
Rep: Reputation: 37
thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
resolv.conf spx2 Linux - Networking 1 01-19-2008 10:00 AM
resolv.conf autophil Linux - Networking 3 08-15-2007 09:51 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 10:21 AM
Who changes /etc/resolv.conf? lmp Debian 4 11-29-2005 09:08 AM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 01:00 PM


All times are GMT -5. The time now is 12:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration