Re: what is my dns ip address

From: Date: Mon, 03 Sep 2007 08:46:58 +0000
Subject: Re: what is my dns ip address
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-261631@lists.php.net to get a copy of this message
yeah but i assume this assumes you are on a unix machine and have administrator rights. it would be nice to be able to look up ip addresses swiftly and automatically on any machine and any operating system running php. On 03/09/07, Per Jessen <per@computer.org> wrote: > Olav Mørkrid wrote: > > > the source of the problem is gethostbyaddr(). it seems to have a 4,5 > > second timeout, so some lookups time out after 4,5 seconds, while most > > of them are resolved in < 0.1 second; a radically performance > > difference. > > You can change the timeout be amending the options statement > in /etc/resolv.conf: > > options timeout: 2 (2 seconds). > > See 'man resolv.conf'. > > > > /Per Jessen, Zürich > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#261631) next »