[PHP] Re: gethostbyname () uses old DNS server

2007-03-27 Thread itoctopus
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

[PHP] Re: gethostbyname () uses old DNS server

2007-03-26 Thread Kent Tong
Stut gmail.com> writes: > Assuming you're using a web server it's possible PHP is caching the DNS > server details. Try restarting the web server. Alternatively try the > same script on the command line. Wow! You're right! Stopping apache and then starting it (in two steps) solves the problem