domain, nameserver, and DNS

When you visit a website, there’s a lot going on behind your computer until you actually view the website.
In this post, you will learn the process of DNS resolution in detail and will also get a grasp on networking-related protocols/terms such as domain, nameserver, DNS, IP address, and so forth.


Let’s check some of the technical definitions and then see how they work together with an example.

domain, nameserver, and DNS
domain, nameserver, and DNS


Say, you type e.g., https://something.com in a browser.
The DNS resolver (a DNS server) takes the query something.com and points it to the root nameserver. The root nameserver responds to the DNS resolver by returning the IP address of a TLD nameserver containing the information of .com.
With that IP address, the DNS resolver queries to the TLD nameserver where returns the IP address of an authoritative nameserver containing the information of something to the DNS resolver.

domain-structure


The DNS resolver then queries to the authoritative nameserver’s IP address, and it returns a complete IP address e.g., 192.168.1.7, that is, in general, the IP address of a web server hosting the requested website, to the DNS resolver.
Finally, the DNS resolver forwards the IP address 192.168.1.7 to the client (your computer) and the client’s browser gets connected to a web server with the IP where returns and displays the webpage at https://something.com/

In the step 9 of the picture above, the IP address is cached (saved in temporary) in case it can be reused on the same request from a client without having to query to nameservers over and over again.
In turn, each nameserver only takes one query at a time and tells the DNS resolver the next nameserver it can query to.


HTTPS

You have probably a lot seen https:// in front of any domain and let’s brefly go through what it is.
HTTPs, short for Hypertext Transfer Protocol Secure, is the HTTP (Hypertext Transfer Protocol) over SSL (Secure Socket Layer)/TLS (Transport Layer Security) protocol.

HTTPs encrypts data communication on the Internet more securely than HTTP does, and you will seldom see insecure websites with HTTP these days.
Say, you visit a website with HTTP in a web browser like Chrome and the browser will show a warning flag displaying Not Secure in front of the domain; e.g., Not secure http://example.com/.
Because any HTTP websites are vulnerable to many different cyber attacks such as Sensitive Data Exposure, Cross-Site Scripting, Broken Authentication, MITM (Man in the Middle) attack, and more; see OWASP Top Ten.

Thus, using HTTPs for website is the essential, not just a recommendation!

convert your manuscript to epub (fiverr gig @whatthehekkist) convert your manuscript to epub (fiverr gig @whatthehekkist) dedicated assistance to your jekyll website, blog, portfolio, or project (fiverr gig @whatthehekkist) dedicated assistance to your jekyll website, blog, portfolio, or project (fiverr gig @whatthehekkist)



What The Hekk is HTML/CSS/JS? a complete guide to creating a web app in 5 min from scratch!

Kindle Edition

What The Hekk is HTML/CSS/JS? a complete guide to creating a web app in 5 min from scratch!

PDF






You May Also Enjoy

  • Web Dev

    what is web and HTML/CSS/JS ?

    2023-04-19

    # What is Web? Web (World Wide Web; WWW) is a vast online information system you can write, read, watch, or consume resources such as documents, media, etc accessed by web browser on the Internet. You can think like the...

  • Network

    [Packet Tracer] Configuring a DHCPv4 Server and a Relay Agent

    2022-07-14

    Cisco Network Academy provides plenty of learning resources in networking. I will cover how to configure basic DHCPv4 on a router and a DHCPv4 Server, and a DHCP relay agent using Packet Tracer where you can simulate network...

  • Web Dev

    what is switch statement?

    2023-05-26

    what is switch statement? switch statement is a conditional statement in JS (and in most programming languages) to execute a certain action over multiple inner blocks called case. switch takes an expression (input condition) that looks for a match...

  • Web Hack

    Insert screenshot into Markdown doc in a second

    2022-07-11

    What is Markdown? Markdown is a free open-source web-focused markup language that gives you hassle-free writing experiences (indeed, once you get familiar with it). As you can so easily find many of how-to-posts on syntax, structure, and so...

  • Web Dev

    what is if-else statement?

    2023-05-14

    if-else statement is one of the most widely used conditional statements in most programming languages to execute a certain action in (a task of) a program. # what is if statement? In JS, you can do a conditional test...

  • Web Dev

    how to use git

    2023-04-09

    Git is a version control system where you can upload, update, and track the source code of your project. Also, you can easily deploy codes in your Git repository to a deployment/hosting platform. There are so many benefits...