Re: what is my dns ip address
| From: | Per Jessen | Date: | Sat, 01 Sep 2007 18:56:11 +0000 |
| Subject: | Re: what is my dns ip address | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261600@lists.php.net to get a copy of this message | ||
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