Re: gethostbyname () uses old DNS server
| From: | Kent Tong | Date: | Mon, 26 Mar 2007 09:55:28 +0000 |
| Subject: | Re: gethostbyname () uses old DNS server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251357@lists.php.net to get a copy of this message | ||
Stut <stuttle <at> 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! In fact, I had tried restarting it
(/etc/init.d/apache restart) but it didn't make any difference.