Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSuban Purushothmakumar
3,306 PointsDoes each request send by the client get sent to the DNS first before the web server?
Does each web request sent by a client always go via the Domain Name Server or is this only the first time you go to a url and then afterwards you communicate via the web server directly?
1 Answer
David Moorhead
18,005 PointsSuban, the answer to your headline question is yes. For the second question regarding communications via web server directly, the following excerpt from Internet Whitepaper written in the name of Stanford University might be helpful.
See this section within the whitepaper Application Protocols: HTTP and the World Wide Web
See this excerpt within the section linked above | "HTTP is a connectionless text based protocol. Clients (web browsers) send requests to web servers for web elements such as web pages and images. After the request is serviced by a server, the connection between client and server across the Internet is disconnected. A new connection must be made for each request. Most protocols are connection oriented. This means that the two computers communicating with each other keep the connection open over the Internet. HTTP does not however. Before an HTTP request can be made by a client, a new connection must be made to the server."
I'd appreciate knowing whether the white paper was helpful. Thank You.