gethostbyname uses the local DNS cache, could that be the problem?

--
itoctopus - http://www.itoctopus.com
"Kent Tong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> We have moved our DNS server from one IP to another. But on a Linux
> server, the PHP programs keep using the old DNS server IP. For
> example, for a simple php file:
>
> <? echo gethostbyname ("smtp.cpttm"); ?>
>
> When it is run, it tries to lookup smtp.cpttm using the old DNS
> server (I know it using tcpdump). The new DNS server is specified in
> /etc/resolv.conf. If I issue "ping smtp.cpttm" in a command prompt,
> then tcpdump shows that it is accessing the new DNS server.
>
> Any idea? Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to