note 77668 added to function.gethostbyname
| From: | guwapo at thedoghouse dot bz | Date: | Fri, 07 Sep 2007 15:25:33 +0000 |
| Subject: | note 77668 added to function.gethostbyname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130295@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 217.160.72.57
Probable Submitter: 80.142.219.231
----
Manual Page -- http://www.php.net/manual/en/function.gethostbyname.php
Edit -- https://master.php.net/note/edit/77668
Del: integrated -- https://master.php.net/note/delete/77668/integrated
Del: useless -- https://master.php.net/note/delete/77668/useless
Del: bad code -- https://master.php.net/note/delete/77668/bad+code
Del: spam -- https://master.php.net/note/delete/77668/spam
Del: non-english -- https://master.php.net/note/delete/77668/non-english
Del: in docs -- https://master.php.net/note/delete/77668/in+docs
Del: other reasons-- https://master.php.net/note/delete/77668
Reject -- https://master.php.net/note/reject/77668
Search -- https://master.php.net/manage/user-notes.php