Page 1 of 1

Simple question about web

Posted: Tue Mar 13, 2007 6:10 pm
by johnhelen
Hello all

I have simple question about www, please help

When I type simple forums.devnetwork.net in my browser, what and where will happen next. Why the server that stores the forums/devnetwork.net knows that I open that website and return a content...

Sorry for a silly question,

thanks
sho

Posted: Tue Mar 13, 2007 6:27 pm
by s.dot
the web looks up the dns servers for the domain you entered. the dns servers point to the server ip that the content is on, the server that the content is on points to the content.

web address -> dns -> server -> content

Posted: Tue Mar 13, 2007 6:27 pm
by RobertGonzalez
That is called DNS. Search for it.

Thanks

Posted: Tue Mar 13, 2007 6:55 pm
by johnhelen
Thanks all

What happen if I type:

http://localhost ....

In this case, my web server in my location computer will process DNS first ???

Thanks

Posted: Tue Mar 13, 2007 7:04 pm
by RobertGonzalez
Try it.

In short, the answer is yes, but that is usually because your computer has a local hosts file that tells it to resolve 127.0.0.1 everytime it sees localhost as the domain.