ConFoo Montreal 2026: Call for Papers

Voting

: five plus three?
(Example: nine)

The Note You're Voting On

guwapo at thedoghouse dot bz
17 years ago
referring to ralphbolton at mail2sexy dot com comment:

(at least in 5.2.0 + djbdns-dnscache) gethostbyname does not really seem to cache entries. If somebody notices a speed-up after the second lookup of the same domain - that's most likely your dns-cache itself, not some php-internal dns-cache.

It does cache the entries in your /etc/resolv.conf (e.g. what dns to use) so I agree with him, that stopping and starting apache, will reload the resolv.conf.

<< Back to user notes page

To Top