Reply to Re: Get the ip address for a domain

Your name:

Reply:


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
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация