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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to