note 64070 added to function.gethostbyname

From: Date: Thu, 06 Apr 2006 20:10:29 +0000
Subject: note 64070 added to function.gethostbyname
Groups: php.notes 
Request: Send a blank email to php-notes+get-107469@lists.php.net to get a copy of this message
On a side-note, PHP (5.0.4, but probably other versions too) can cache gethostbyname information. In short, once PHP looks up an address, it may not actually perform another lookup as you may expect. In my particular case (I think) the problem was a change to resolv.conf didn't take effect inside PHP (although nslookup/ping etc worked fine). Stop/Starting Apache fixed it (although a simple 'restart' (kill -HUP) didn't). In short, if you change resolv.conf, stop and restart Apache. ---- Server IP: 85.116.0.130 Probable Submitter: 83.67.131.199 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.gethostbyname.php Edit -- http://master.php.net/note/edit/64070 Del: integrated -- http://master.php.net/note/delete/64070/integrated Del: useless -- http://master.php.net/note/delete/64070/useless Del: bad code -- http://master.php.net/note/delete/64070/bad+code Del: spam -- http://master.php.net/note/delete/64070/spam Del: non-english -- http://master.php.net/note/delete/64070/non-english Del: in docs -- http://master.php.net/note/delete/64070/in+docs Del: other reasons-- http://master.php.net/note/delete/64070 Reject -- http://master.php.net/note/reject/64070 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107469) next »