{"id":1094,"date":"2021-03-17T14:21:03","date_gmt":"2021-03-17T12:21:03","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1094"},"modified":"2022-10-12T10:51:43","modified_gmt":"2022-10-12T07:51:43","slug":"what-is-dns","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/what-is-dns\/","title":{"rendered":"What is DNS?"},"content":{"rendered":"<p><i><span style=\"font-weight: 400;\">Ever tried to visit a website only to see \u201cthis site can&#8217;t be reached?\u201d<\/span><\/i><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">That\u2019s a DNS error page. It means <\/span><b>your browser couldn\u2019t find the Internet Protocol<\/b><span style=\"font-weight: 400;\"> (IP) address for that website. It\u2019s a similar response to when you\u2019re calling a number, and it comes up as \u201cunavailable.\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-1095 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_19.png\" alt=\"What is DNS?\" width=\"338\" height=\"259\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_19.png 338w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_19-300x230.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">Think of DNS as an \u201cinternet directory,\u201d with IP addresses as numbers and domain names as actual names. In 2020, <\/span><span style=\"font-weight: 400;\">Verisign listed over 300 million domain names.\u00a0 Although, this wasn\u2019t the case some 40 years ago. <\/span><b>Paul Mockapetris developed the DNS system in 1983<\/b><span style=\"font-weight: 400;\"> and dubbed it the Domain Name System (DNS).\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"size-full wp-image-1096 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_27.png\" alt=\"What is DNS?\" width=\"336\" height=\"87\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_27.png 336w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_27-300x78.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Screenshot: Paul Mockapetris<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Back then, computers could only communicate using numbers, which were not easy to remember.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With time, <\/span><b>it became difficult to maintain and correspond specific addresses<\/b><span style=\"font-weight: 400;\"> with specific computers, hence the DNS. In this article, we&#8217;ll take a look at the DNS and how it operates.\u00a0<\/span><\/p>\n<h2><b>How the DNS works with an Example<\/b><\/h2>\n<p><b>The DNS directory matches names to numbers<\/b><span style=\"font-weight: 400;\">. It does this through the help of multiple DNS servers around the world.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"size-full wp-image-1097 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_33.png\" alt=\"What is DNS?, How the DNS works with an Example\" width=\"466\" height=\"293\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_33.png 466w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_33-300x189.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Image Credit: SEObility<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">These servers <\/span><b>store DNS records<\/b><span style=\"font-weight: 400;\"> that are domain names and <\/span><b>link them to a specific IP address<\/b><span style=\"font-weight: 400;\"> as soon as there is a query. You may also refer to these name servers as root servers. They store records of every domain name according to the location of the Top-Level Domain (TLD)<\/span><\/p>\n<p><b>TLDs are domain extensions<\/b><span style=\"font-weight: 400;\">. You can find them at the end of your domain name as a two, three, or four-word character.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let&#8217;s put this into perspective using an example.\u00a0 Say you search for<\/span><i><span style=\"font-weight: 400;\"> www.scalahosting.com<\/span><\/i><span style=\"font-weight: 400;\"> on the internet. Your computer sends queries to multiple DNS servers that get the IP address before loading a web page.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"size-full wp-image-1098 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_39.png\" alt=\"What is DNS?, How the DNS works with an Example 2\" width=\"445\" height=\"57\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_39.png 445w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_39-300x38.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Screenshot: Scala Hosting IP Address<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">This query goes through four \u201c<\/span><i><span style=\"font-weight: 400;\">authoritative name servers<\/span><\/i><span style=\"font-weight: 400;\">\u201d that enable the DNS to function.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You might find all this difficult to understand, but hang on we\u2019ll talk about them in a minute.<\/span><\/p>\n<h3><b>DNS (Recursive) Resolver<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The DNS or recursive resolver <\/span><b>receives DNS queries<\/b><span style=\"font-weight: 400;\"> from your web browser or other web applications. The recursive resolver receives the hostname, which is the website and tracks down its IP address in the cache of your local device.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Therefore to translate the hostname you queried, the DNS resolver will first figure out where the records of .com are, then scalahosting.com, and lastly, www.scalahosting.com.\u00a0<\/span><\/p>\n<p><b>This DNS server resolves the query immediately <\/b><span style=\"font-weight: 400;\">when it finds the hostname. If not, it sends a query for the IP address of <\/span><b>.com<\/b><span style=\"font-weight: 400;\"> to an authoritative name server called DNS root server.\u00a0<\/span><\/p>\n<h3><b>DNS Root Server<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The root server is <\/span><b>the name server for the Domain Name System\u2019s root zone<\/b><span style=\"font-weight: 400;\"> (DNS).\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It contains an up-to-date list of all global top-level domains (TLDs) in its servers. For each of these TLD, there\u2019s a matching numeric IP address of name servers with the TLD records on it.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So, <\/span><b>the computer searches for the IP details of the TLD at the root server<\/b><span style=\"font-weight: 400;\">, which is <\/span><b>.com<\/b><span style=\"font-weight: 400;\"> in this instance and sends it to the TLD name server to continue the process.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Various organizations such as the University of Maryland, Verisign Inc, Cogent Communications, and the US Army Research Lab operate <\/span><a href=\"https:\/\/www.iana.org\/domains\/root\/servers\"><span style=\"font-weight: 400;\">13 root servers globally.<\/span><\/a><span style=\"font-weight: 400;\"> Computers access these root servers using 13 numeric IP addresses <\/span><b>to communicate from different locations.\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Because of this, different local servers in one location <\/span><b>can share one IP address and communicate with multiple servers<\/b><span style=\"font-weight: 400;\"> in various locations using that location\u2019s root IP address.\u00a0\u00a0<\/span><\/p>\n<h3><b>TLD Name Server<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The TLD name server <\/span><b>contains specific DNS records<\/b><span style=\"font-weight: 400;\"> of the domain name and provides an authoritative name server\u2019s IP details.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For this example, the TLD name server stores the IP address of Scala Hosting within the TLD name (.com). It then sends a specific IP address of the hostname to the DNS to continue the process.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Domain Name System (DNS) may find it challenging to function correctly in its absence because of the specificity.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Although the Internet Assigned Numbers Authority (IANA) and Internet Corporation for Assigned Names and Numbers (ICANN) recognizes three types of <\/span><b>TLD for different purposes:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">gTLD \u2013 Generic Top-Level Domains e.g .com, .net, .google .info<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">sTLD \u2013 Sponsored Top-Level Domains e.g .gov, .mil .travel<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ccTLD \u2013 Country Code Top-Level Domains e.g .nz, .za, .us, .uk<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">You can access any type (<\/span><i><span style=\"font-weight: 400;\">depending on what you need it for<\/span><\/i><span style=\"font-weight: 400;\">) when you <\/span><a href=\"https:\/\/www.scalahosting.com\/domain-names.html\"><span style=\"font-weight: 400;\">register your domain name<\/span><\/a><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><img decoding=\"async\" class=\"size-full wp-image-1099 aligncenter\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_55.png\" alt=\"What is DNS?, TLD Name Server\" width=\"465\" height=\"180\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_55.png 465w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/03\/2021-03-17_14h13_55-300x116.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/span><\/p>\n<p><b>You can also change your website\u2019s <span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;TLD&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:636,&quot;5&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;6&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;7&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;8&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;9&quot;:0,&quot;12&quot;:0}\">TLD<\/span><\/b><span style=\"font-weight: 400;\">\u00a0by using a 301 redirect.<\/span><\/p>\n<h3><b>Authoritative DNS Name Server<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The authoritative name server is the final stop in the www.scalahosting.com query.<\/span><\/p>\n<p><b>Here\u2019s how it fits into the entire DNS process:<\/b><\/p>\n<p><b>It gets records of the domain<\/b><span style=\"font-weight: 400;\"> &#8211; www.scalahosting.com, the second-level domain &#8211; scalahosting.com, and returns the correct IP address to the DNS resolver, waiting at the first stage. But that\u2019s not the only thing an authoritative name server does.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In cases when it has none or incomplete records, <\/span><b>it reroutes the DNS resolver to another name server <\/b><span style=\"font-weight: 400;\">with specific records for that subdomain.\u00a0 A good example is <\/span><b>my.scalahosting.com <\/b><span style=\"font-weight: 400;\">that brings you to the \u201csale section\u201d of the website to purchase our services.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Like phone books, <\/span><b>authoritative name servers may cover different DNS zones<\/b><span style=\"font-weight: 400;\">. This could be your company, your local area, or your country.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Regardless of the zone, it covers, the authoritative name server performs <\/span><b>two tasks:<\/b><span style=\"font-weight: 400;\">\u00a0<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">First, <\/span><b>it keeps records of domain names and their matching IP addresses<\/b><span style=\"font-weight: 400;\">.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Second, <\/span><b>it responds to the DNS resolver\u2019s requests<\/b><span style=\"font-weight: 400;\"> by matching the correct IP address with the domain names.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">For the DNS process to be complete, the recursive resolver takes all these results and sends them back to your web browser, bringing up a web page.<\/span><\/p>\n<h2><b>In a Nutshell<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Apart from being <\/span><b>the roadmap for internet connection<\/b><span style=\"font-weight: 400;\">, the DNS has many other uses.\u00a0<\/span><\/p>\n<p><b>Some of these can range from:\u00a0<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">routing messages to email servers<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">connecting app servers and databases within a web application<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">connecting multiple players in an online game<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Essentially, <\/span><b>the DNS is the backbone of the modern-day internet<\/b><span style=\"font-weight: 400;\">. You\u2019ll need to set up DNS to allow others access to your website and services.<\/span><\/p>\n\n\n<p class=\"youtube-player\" id=\"qwGE9xz5eb8\">How To Point a Domain Name To a Web Hosting Provider<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n        \"@context\": \"https:\/\/schema.org\",\n        \"@type\": \"VideoObject\",\n        \"name\": \"How To Point a Domain Name To a Web Hosting Provider\",\n        \"description\": \"You can actually buy web hosting and domain name from different providers and just link these two things together. In this video we'll show you exactly how.\",\n        \"thumbnailUrl\": [\n            \"https:\/\/i3.ytimg.com\/vi\/qwGE9xz5eb8\/maxresdefault.jpg\"\n        ],\n        \"uploadDate\": \"2022-04-11\",\n        \"duration\": \"PT3M45S\",\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=qwGE9xz5eb8\"\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Ever tried to visit a website only to see \u201cthis site can&#8217;t be reached?\u201d\u00a0 That\u2019s a DNS error page. It means your browser couldn\u2019t find the Internet Protocol (IP) address for that website. It\u2019s a similar response to when you\u2019re calling a number, and it comes up as \u201cunavailable.\u201d Think of DNS as an \u201cinternet [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[27],"tags":[],"class_list":["post-1094","post","type-post","status-publish","format-standard","hentry","category-vps-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1094"}],"version-history":[{"count":5,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":5177,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1094\/revisions\/5177"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}