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.
-- 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