Page 1 of 1

how to find domain's ip?

Posted: Fri Sep 05, 2008 3:34 am
by itsmani1
Hi,

I want to find IP against a domain name and i also want to find other domains on a given IP? Is there any way i can do it with php? Thanks in advance.

Regards,

Re: how to find domain's ip?

Posted: Mon Sep 08, 2008 3:40 am
by adroit
Hi itsmani1,

Use this to get IP from domain name.
$ip = gethostbyname('www.example.com');

Regards,
Adroit
http://www.adroitsoftware.org