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. |
Quote:
http://www.linuxquestions.org/questi...light=dhclient cheers, jdk |
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 |
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 |
thanks a lot.
|
All times are GMT -5. The time now is 11:41 PM. |