Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS not real 1

Status
Not open for further replies.

shmoes

MIS
Apr 24, 2003
567
CA
Hey all

Question, in theory dns takes a name and identifies the number .. if you took that website number and put it in your webbrowser you should be able to goto
however it goes to another page .. how do you get a true dns of that page?

Any thoughts?




~Shmoes

I lay claim to nothing and everything. My words may be wisdom or disaster. In the end you make a choice. Noone is perfect.
 
What you are seeing is the fact that multiple web sites can share a single IP address. When a web browser connects to a server, it sends an HTTP header which specifies the host name of the web site to which it wants to connect. The web server can then send the content of the correct site on that IP address. If you specify the IP address instead of the domain name, then the web server sends a page from the default site, usually the first site defined to be on that IP address.

If you want to find the IP address of a fully-qualified domain name, use ping, nslookup, or dig.




Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks for the reply.

so it would be safe to say ..

http:\\x.x.x.x <-default

http:\\x.x.x.x\site2 <-alternate ?

is there a way to find the alternate site or find the headers shared on that ip?



~Shmoes

I lay claim to nothing and everything. My words may be wisdom or disaster. In the end you make a choice. Noone is perfect.
 
No.

Two sites on a single IP address may or may not share filesystem space from the document root down. So trying to reference them using paths will probably not work.

Also, the headers returned by the server will depend on the site the server selects to send to your browser. There is no meaningful crossover.



You can try reverse DNS on an IP address. But if the IP address in question is shared by multiple sites, you're not going to get all the domain names. You'll probably get just one.



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks!

~Shmoes

I lay claim to nothing and everything. My words may be wisdom or disaster. In the end you make a choice. Noone is perfect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top