Re: Get the ip address for a domain
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Get the ip address for a domain

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com>
Date: Mon Jun 27 2005 - 16:25:40 CEST

*** 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
--
Received on Mon Oct 17 20:57:51 2005