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!




You May Also Enjoy

  • Web Dev

    Nelify에 Jekyll 웹사이트 배포하기

    2022-07-10

    정적 웹사이트나 블로그에 관심이 많다면 [Jekyll](http://Jekyllthemes.org/)에 대해 들어 봤을 것이다. 간단한 구글링만으로도 Jekyll을 사용하여 어떻게 웹사이트나 블로그를 만드는지 쉽게 알 수 있다. 이 블로그 또한 Jekyll 기반이고, [Better Jeong](https://betterjeong.github.io/blog/21042701/)님과 [Jihye Leee](https://www.jihyeleee.com/blog/third-designer-can-make-Jekyll-blog/)님의 블로그 포스트를 참고하여 커스터마이징하였다. # Nelify에 배포하기 Jekyll기반 블로그를...

  • 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 Hack

    Insert screenshot into Markdown doc in a second

    2022-07-11

    # What is Markdown? [Markdown](https://www.markdownguide.org/getting-started/) 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 on...

  • Web Dev

    [Gitpod] 웹에서 코딩하기

    2022-07-12

    Gitpod은 오픈소스 원격 개발 플랫폼이다. 이미 굉장히 많은 사용자들이 있고, 이 블로그 또한 처음부터 Gitpod 사용했다. 개인적으로 생각하는 Gitpod의 가장 큰 장점은 사용자가 본인 컴퓨터에 로컬 개발환경 세팅에 시간을 너무 많이 투자해야 할 필요가 없고, 모든 걸 Gitpod이 제공하는...

  • 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...