Re: Development question: DNS lookups

From: Date: Fri, 28 Dec 2001 15:51:12 +0000
Subject: Re: Development question: DNS lookups
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75188@lists.php.net to get a copy of this message
On Fri, Dec 28, 2001 at 04:30:33PM +0100, Edwin Boersma wrote: > Hi there, > > My provider stopped the DNS service on the server that runs mySQL and > PHP. By result, the function GetHostByAddr() is useless. Can I tell PHP > to use another DNS server to lookup the IP-address? No PHP uses whatever is configured on the system. PHP just does the gethostbyaddr() call, and the system does the rest. One solution could be to call an external program like host or something. host can be told to use a specific nameserver, and does not depend on system configuration. Stig

« previous php.dev (#75188) next »