Skip to the content.

How Does the Internet Work?

When we want to go to www.$domainname.com in our browser, the following steps are followed:

  1. Check the browser cache to see if the site is familiar.
  2. Check the /etc/host file for linux and C:\Windows\System32\drivers\etc\hosts file for windows on computer (is not always performed, as it depends on whether the domain name has been previously accessed and cached on the computer).
  3. Check the defined DNS Server (8.8.8.8.8,8.8.4.4 Google DNS / 1.1.1.1.1,1.0.0.1 Cloudflare DNS). If there is no registered DNS Server, the default server is the DNS Server of the service provider (Vodafone, Kablonet, etc.)
  4. The defined DNS Server goes to one of the Root Servers (13 in total). These Root Servers hold only the information of the distributors of domain names like .com, .com.tr etc. This is called TLD (Top Level Domain) information.
  1. Again DNS Server, goes to the TLD Server, obtains the IP address of the Name Server (NS) where NS is responsible for providing the IP address of the website files when requested by the DNS server and passes this information to the browser.
  2. Tshe browser sends an HTTP request to the server at the IP address obtained from the DNS server, which then sends back the website files as an HTTP response.

NOTE: Any changes made to the IP address (DNS propagation) are captured by the DNS Servers after a certain period of time. Therefore, it is preferable to change the IP address at night to avoid any confusion.

Some DNS Record Types

Record Type Function
DNS A Record Direct server IP address. Specifies where to look when the domain name is typed.
DNS CNAME Record Subdomain definition (Example: Project page)

NOTE: For CNAME records, the address to be redirected to is hidden in the value part of the CNAME record.

Example

Address Registration Type
osmankayi.com A
tr.osmankayi.com CNAME
person@osmankayi.com MX (email server)

The DNS A Record contains the information on which computer the domain name is located. Depending on this, CNAME etc. records are retrieved.

NOTE: The dig www.osmankayi.com command allows us to query the domain name. As a result, it shows us the “CNAME” and “A” record(s), if any.