DEV Community

Discussion on: How does the Internet work?

Collapse
 
marzelin profile image
Marc Ziel

the browser does not know the server's IP address associated to the URL. Hence it goes to the ISP for the server's address.

The browser goes to the OS and asks for an IP address associated with a particular hostname. If the OS can't resolve it itself (by using cache or local hosts file) it goes to a default DNS server configured in the system.

Where did you find this request/response diagram? It's a bit wrong.
An HTTP request consists of a start line, optional headers and optional body. HTTP method, path (request target) and HTTP version are part of the start line, not headers.

A host can be an IP address, a host name or a domain. It's not a URL. The URL must at least consist of a scheme and a path to a resource.