Stut wrote:
Richard Heyes wrote:
Or read the contents of /etc/resolv.conf
Faster for static DNS servers, but if you're using DHCP assigned
servers, they aren't likely to be in there.
Yes they are. The DNS resolver has just one place to look, and
that's /etc/resolv.conf.
The DNS resolver? What? If DNS servers are assigned by DHCP how will
they be in resolv.conf?
Because dhcpclient overwrites resolv.conf when it gets DNS details from
a DHCP server.
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 support
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php