LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Query regarding /etc/resolv.conf (https://www.linuxquestions.org/questions/linux-newbie-8/query-regarding-etc-resolv-conf-732809/)

saagar 06-14-2009 02:38 AM

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.

jdkaye 06-14-2009 02:58 AM

Quote:

Originally Posted by saagar (Post 3573240)
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

saagar 06-14-2009 06:17 AM

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

jdkaye 06-14-2009 07:11 AM

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

saagar 06-14-2009 01:51 PM

thanks a lot.


All times are GMT -5. The time now is 05:34 AM.