Re: what is my dns ip address
| From: | Richard Heyes | Date: | Sun, 02 Sep 2007 13:13:22 +0000 |
| Subject: | Re: what is my dns ip address | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261613@lists.php.net to get a copy of this message | ||
Stut wrote:
Richard Heyes wrote:I see. Didn't know that, (never used DHCP on *nix). -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online supportBecause dhcpclient overwrites resolv.conf when it gets DNS details from a DHCP server.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.