LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2009, 01:38 AM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 113

Rep: Reputation: 15
View all domain names hosted on an IP address


Hello,
Is there a way you can view all domain names hosted on an IP address using dig or whois? Say if a server is using Name Based hosting?? Thanks.
 
Old 10-21-2009, 02:05 AM   #2
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Not that I'd know of a way, the only host you can check for an IP address is the host which is in it's reverse zone.
host IPAddress
 
Old 10-21-2009, 03:48 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You can use this. Fill-in the ip, click lucky and select shared from the menu

Regards
 
Old 10-21-2009, 04:28 AM   #4
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Not sure if this works in any other way. I'm hosting 3 or 4 domains and around 100 subdomains altogether on my DNS server, and only host it finds is the one that my IP is reversing to.
 
Old 10-21-2009, 05:03 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Well, it works, sort of!! I have ~20 vhosts in my apache and it can find 17 of them. There are also this and this, but they also give me similar results.
 
Old 10-21-2009, 05:09 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
If they are using host headers then you can not tell how many sites are at an IP address. (unless you try every possible fqdn)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot ping hosted domain (site) at server Peon1 Linux - Newbie 4 10-06-2007 05:39 AM
I cannot ping hosted domain (site) at server Peon1 Linux - Networking 3 10-05-2007 10:21 PM
How to point two domain names to one IP address wwwdot Linux - Newbie 1 05-23-2006 09:10 PM
home hosted domain name? is this possable? Ian_Hawdon Linux - Networking 7 12-18-2005 10:53 PM
How to view the web site hosted on win2k server which is a client machine? gogo Linux - Networking 10 10-19-2002 11:48 PM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration