Re: Reverse IP lookup

From: Date: Mon, 16 Feb 2009 17:09:40 +0000
Subject: Re: Reverse IP lookup
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-288346@lists.php.net to get a copy of this message
Hello, Is there anyway to get a list of sitess that are on a specific IP? I looked, But I couldn't find anything. I tried to make some with dns_get_record and gethostbyaddr, but couldn't make anything Thank Daniel
Well actually you can't basically because of the way the Name Service reverse resolution works. AFAIK you may assign many domain names to a single IP as A records (main resolution option) or as CNAME (aliases) but you can't assign multiple IP's on the same domain name (meaning you can't make many PTR records for the same IP). So perhaps there are solutions to this using search engines but you can't know for sure. This is the way it works. -- Thodoris

« previous php.general (#288346) next »