Re: what is my dns ip address
| From: | Stut | Date: | Sun, 02 Sep 2007 13:09:42 +0000 |
| Subject: | Re: what is my dns ip address | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261612@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
Because dhcpclient overwrites resolv.conf when it gets DNS details from a DHCP server. -Stut -- http://stut.net/The DNS resolver? What? If DNS servers are assigned by DHCP how will they be in resolv.conf?Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf.Or read the contents of /etc/resolv.confFaster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there.