All Sub-domains of a domain name

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

All Sub-domains of a domain name

Post by anjanesh »

Is there any way to figure out all sub-domains of a domain ?
I tried to search for a parsing method but no good - the links are different which finally gets to the subdomain and moreover not all links are available even if I could parse.

Any method to get all sub-domains of a domain name ? I think looking for a php method ? Or some other ?

Thanks
Revan
Forum Commoner
Posts: 83
Joined: Fri Jul 02, 2004 12:37 am
Location: New Mexico, USA
Contact:

Post by Revan »

User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Ok. There is some info here : http://www.freebsdhowtos.com/62.html which is full of unix commands. Is there any way these commands (dig etc) can be integrated and executed in PHP ?
Thanks
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

If you have shell access:

Code: Select all

exec('command-to-run');
I run fortune on my website by running:

Code: Select all

exec('fortune -s >fortune.out');
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Thank you for your reply.
But is there any other method to get all sub-domain names of a domain ?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

There is something I found here : http://inventory.overture.com/d/searchi ... uggestion/
Give yahoo.com it gives some sub-domain names. But only the ones that have large amt of hits - descending - all the sub-domains are not list but they've used a method that can retrieve all the subdomain names - any idea how this is done ?
Thanks
Post Reply