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 <[EMAIL PROTECTED]> wrote:
> Olav Mørkrid 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 stat
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.
the user written gethostbyaddr_timeout() on the gethostbyaddr man page
overcomes thi
Stut wrote:
Richard Heyes wrote:
Or read the contents of /etc/resolv.conf
Faster for static DNS servers, but if you're using DHCP assigned
servers, they aren't likely to be in there.
Yes they are. The DNS resolver has just one place to look, and
that's /etc/resolv.conf.
The DNS resolver?
Richard Heyes wrote:
Or read the contents of /etc/resolv.conf
Faster for static DNS servers, but if you're using DHCP assigned
servers, they aren't likely to be in there.
Yes they are. The DNS resolver has just one place to look, and
that's /etc/resolv.conf.
The DNS resolver? What? If DNS
Or read the contents of /etc/resolv.conf
Faster for static DNS servers, but if you're using DHCP assigned
servers, they aren't likely to be in there.
Yes they are. The DNS resolver has just one place to look, and
that's /etc/resolv.conf.
The DNS resolver? What? If DNS servers are assigned
Richard Heyes wrote:
>> Or read the contents of /etc/resolv.conf
>
> Faster for static DNS servers, but if you're using DHCP assigned
> servers, they aren't likely to be in there.
>
Yes they are. The DNS resolver has just one place to look, and
that's /etc/resolv.conf.
/Per Jessen, Zürich
Robert Degen wrote:
Or read the contents of /etc/resolv.conf
I'm not familiar with, but does any MS product have any
comparable file?
There is a hosts file, but no resolv.conf or equivalent AFAIK.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and
>> Or read the contents of /etc/resolv.conf
I'm not familiar with, but does any MS product have any
comparable file? I remember a "host(s)" ... file somewhere below
system32\etc\... but is there any resolv.conf ?
I got no win machine here with me, so I can't look it up :-)
> Faster for static
Or read the contents of /etc/resolv.conf
Faster for static DNS servers, but if you're using DHCP assigned
servers, they aren't likely to be in there.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online
Richard Heyes wrote:
> Olav Mørkrid wrote:
>> is there a function in php that will return the ip address of the dns
>> server on the system?
>>
>> eg.
>>
>> $dns_ip = get_dns_ip_address();
>
>
> Don't know of a specific command that returns them, but you could
> parse the output of nslookup an
Olav Mørkrid wrote:
is there a function in php that will return the ip address of the dns
server on the system?
eg.
$dns_ip = get_dns_ip_address();
Don't know of a specific command that returns them, but you could parse
the output of nslookup and cache the results.
--
Richard Heyes
+44 (0
is there a function in php that will return the ip address of the dns
server on the system?
eg.
$dns_ip = get_dns_ip_address();
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
13 matches
Mail list logo