Richard Heyes wrote: > Olav Mørkrid wrote: >> is there a function in php that will return the ip address of the dns >> server on the system? >> >> eg. >> >> $dns_ip = get_dns_ip_address(); > > > Don't know of a specific command that returns them, but you could > parse the output of nslookup and cache the results.
Or read the contents of /etc/resolv.conf /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php