|
Posted by Alvaro G Vicario on 06/27/05 17:25
*** Angelos wrote/escribió (Mon, 27 Jun 2005 14:01:58 +0000 (UTC)):
> I try that : echo $domain = checkdnsrr('www.google.com','ANY'); For
> example...
> And I get in the screen 1 ...
Correct. That means that www.google.com does have a DNS entry (in PHP
different from zero means TRUE).
> what I want is to get the IP address for that
> DOMAIN ... Any ideas ?
"See also dns_get_record(), getmxrr(), gethostbyaddr(), gethostbyname(),
gethostbynamel(), and the named(8) manual page."
gethostbyname(), I reckon.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Navigation:
[Reply to this message]
|