when I hit the URL say wget yahoo.com. What all steps take place from the time I hit ENTER till I get the webpage. This is with Solaris machine having Apache webserver and DNS configured . I want to know how does the DNS and apache interact to display the webpage.
Slightly simplified, but the entire dns workings aren't that interesting to you I think ;)
yahoo.com
from your local dns server (or isp dns server) yahoo.com
dns servers yahoo.com
as host so the server at yahoo.com
knows what domain it needs to return wget will make an http connection to that ip address
when the yahoo web server running at that ip address (what you call apache) receives the request, it checks what url you asked for, the url is inside the http request.
Note that some browsers will make a search request if the URL you enter isn't a proper URL. So if you type "stackoverflow" in the address bar in firefox, firefox goes to google, make search, and direct you to the first link in that search. I believe the microsoft browser does the same, but does it search on bing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.