homepage Welcome to WebmasterWorld Guest from 54.211.138.180
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Reverse IP Lookup - get all domains hosted on server
alex_1986




msg:4065550
 9:38 am on Jan 22, 2010 (gmt 0)

Hi .
Anybody knows how to do something like this:

Reverse IP Lookup - get all domains hosted on server

thanks .

[edited by: engine at 9:41 am (utc) on Jan. 22, 2010]
[edit reason] See WebmasterWorld TOS [/edit]

 

coopster




msg:4099568
 3:07 pm on Mar 17, 2010 (gmt 0)

Nope, not likely for you my friend.

If you happen to be an authoritative server, which is highly unlikely, you can use dig to determine the primary name server and then request a zone transfer query (axfr) ...
dig @ns.primarynameserverhere.com example.com axfr

... and then this will only work if the primary name server you query is configured to allow axfr requests from your IP address. And unless your IP address has been configured as a secondary for the domain ... well, this ain't gonna happen, cap'n.

All these safeguards are in place so the only way to determine is to have access to the zone file or else query for the cname, one by one. And if you attempt this one-by-one query process automagically via a script, it is going to look like you are being quite naughty so my recommendation is to simply ask the domain manager for a list of the subdomains or a printout of the zone file.

<added>
I just realized that you may be asking about other domains on the same server ... I thought perhaps you were asking about subdomains for a given domain name. A quick search on your favorite search engine will turn up plenty of options for reverse IP lookups.
</added>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved