3
When I do ping stackoverflow.com from command window in Windows, how does it get the ip address of stackoverflow. Basically how does the entire thing work ?
3
When I do ping stackoverflow.com from command window in Windows, how does it get the ip address of stackoverflow. Basically how does the entire thing work ?
16
For @Evan (because I'm waiting for rm -rf
to finish before i can do work):
Here is the process of ping resolving a website:
ping serverfault.com
- and sends a signal to the Operating system to do a DNS LOOKUP (I skimped on a couple of places mostly because i ran out of juice and only have 1/2 a cup of coffee in me)
Skimping or no skimping, that was impressive considering it's not even Friday. – Kara Marfia – 2010-07-15T15:01:14.370
@Zypher = > was a great answer. Though when I said the entire thing I did not expect electric signal from brain in the answer :). – Prashant – 2010-07-15T17:52:36.183
4
It is called DNS.
If I wouldn't have hit the captcha, it would have been a simul-post. :) +1. – jscott – 2010-07-15T14:37:14.863
Yah damn thing! hahaha. I think you beat me.. +1 for you too! – Campo – 2010-07-15T14:37:45.767
3
First it uses your local host file then it uses your primary dns server, if that fails it goes to the secondary dns server.
Why others forget the host file. – Pipe – 2010-07-15T16:29:42.827
1
Take a look at the following...
http://en.wikipedia.org/wiki/Routing_table
http://compnetworking.about.com/od/hardwarenetworkgear/f/routing_table.htm
Also look up routing metric's
These are some fundemental networking
2Although these links may answer the question, it is preferred for you to summarize the links so we have a actual answer here – Canadian Luke – 2012-10-08T18:54:50.420
7Isn't anybody going to start w/ the keyboard controller and work out from there? He did say "the entire thing"... – Evan Anderson – 2010-07-15T14:39:25.793
1Heh, I was thinking about it, Evan, but then realized it would be a big pain in the rear to explain. :) – EEAA – 2010-07-15T14:40:40.550
1Sometimes the time and effort is not deserved. – Warner – 2010-07-15T14:41:30.670
Evan, I would have thought you could explain all of it, including the keyboard controller within 5 mins of the question being asked! – Nick Kavadias – 2010-07-15T14:44:26.843
@Evan Anderson = sic – Campo – 2010-07-15T14:49:53.070
The entire thing? Don't forget the CS, EE and Physics guys over on the Area51 SE site. – jscott – 2010-07-15T14:51:01.663
@Evan I gave it my best shot :) @ErikA & @Warner Aww common the effort is almost always worth it :) – Zypher – 2010-07-15T14:57:05.877
Although it made me a little sad to cast a close to SU vote after i wrote it. – Zypher – 2010-07-15T14:57:41.240
@Zypher - we appreciate your contribution on SU too. – Gnoupi – 2010-07-15T15:45:17.160