Re: what is my dns ip address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux