{"id":32875,"date":"2017-11-10T15:29:08","date_gmt":"2017-11-10T13:29:08","guid":{"rendered":"https:\/\/blog.superhosting.bg?p=32875"},"modified":"2022-02-17T15:09:21","modified_gmt":"2022-02-17T13:09:21","slug":"how-the-dns-works","status":"publish","type":"post","link":"https:\/\/blog.superhosting.bg\/en\/how-the-dns-works.html","title":{"rendered":"What is a DNS?"},"content":{"rendered":"<p>The <a title=\"Domain Name System | Wikipedia\" href=\"https:\/\/en.wikipedia.org\/wiki\/Domain_Name_System\" target=\"_blank\" rel=\"noopener\">DNS<\/a> (Domain Name System) is one of the most complicated to understand systems, that lies in the foundation of the Internet and exists before the Web appeared.<\/p>\n<p>DNS is a naming system where records for matching domain name to IP address are stored. When a domain name is registered the DNS details for it are entered into the DNS Index. The DNS details then are publicly accessible for everyone who wants to know the IP address of a certain domain. But not everyone can perform a DNS lookup in the DNS Index. Special applications called DNS resolvers are used for the purpose as they can read the DNS protocol and translate domain names into IP addresses.<\/p>\n<p>Nowadays we normally associate the term &#8220;domain\u201d with a &#8220;website&#8221;, but domain names are also used by many other services on the Internet such as email, FTP and more.<\/p>\n<p>Almost everyone who owns a registered domain has faced the term DNS or the need to point a domain, change its DNS records, <a title=\"How to Change My DNS Servers? | Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/how-to-change-dns.html\" target=\"_blank\" rel=\"noopener\">set name servers<\/a>, await the propagation time for the DNS data, change the hosts file&nbsp;and others.<\/p>\n<p>With the articles of the \u201eWhat is a DNS?\u201c series we will try to shed some light on basic DNS concepts as well as to give answers of questions such as: Why and how a domain is &#8220;pointed?, What is the difference between DNS servers and DNS records?, Why there is a propagation time for the DNS data? and others.<\/p>\n<h5 style=\"margin: 16px auto;\"><a title=\"What is a DNS and Why it is Used for Resolving Domains into IP addresses? | Blog Superhosting.BG\" href=\"https:\/\/blog.superhosting.bg\/en\/dns-how-it-works-part1.html\"><strong>What is a DNS and Why it is Used for Resolving Domains into IP addresses?<\/strong><\/a><\/h5>\n<p><a href=\"https:\/\/blog.superhosting.bg\/en\/dns-how-it-works-part1.html\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignright wp-image-32472 size-medium\" title=\"What is a DNS and Why it is Used for Resolving Domains into IP addresses?\" src=\"https:\/\/blog.superhosting.bg\/wp-content\/uploads\/2017\/11\/02-dns-how-it-works-part1-1024x439-300x129.png\" alt=\"What is a DNS and Why it is Used for Resolving Domains into IP addresses?\" width=\"300\" height=\"129\"><\/a>In the first article of the series we will get to know that the IP address is required for each application (the web browser) so that it can connect with another application (the web server) and the DNS server as an index where the record \u201e<strong>domain.name=IP address<\/strong>\u201c is stored. This important record is stored on a&nbsp;name server on the web and only the DNS&nbsp;resolver&nbsp;can find it (by performing a lookup in the DNS Index).<\/p>\n<h5 style=\"margin: 16px auto;\"><strong><a title=\"Levels of a Domain Name in the DNS Index | Blog SuperHosting.BG\" href=\"https:\/\/blog.superhosting.bg\/en\/dns-how-it-works-part2.html\">Levels of a Domain Name in the DNS Index<\/a><\/strong><\/h5>\n<p><a href=\"https:\/\/blog.superhosting.bg\/en\/dns-how-it-works-part2.html\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignright wp-image-32483 size-medium\" title=\"Levels of a Domain Name in the DNS Index\" src=\"https:\/\/blog.superhosting.bg\/wp-content\/uploads\/2017\/11\/03-dns-how-it-works-part2-1024x439-300x129.png\" alt=\"Levels of a Domain Name in the DNS Index\" width=\"300\" height=\"129\"><\/a>Domains are a combination of words separated by dots (periods). Each word, separated with a dot represents a level (area, domain) in the DNS hierarchy. The domain levels are defined backwards and the (.) symbol plays a role of delimiter for the different levels. For example, the levels in&nbsp;superhosting.bg&nbsp;look like this:&nbsp;1&nbsp;top-level domain:&nbsp;<strong>bg<\/strong>;&nbsp;2second-level domain:&nbsp;<strong>superhosting<\/strong>. When the DNS resolver is performing a lookup of the domain&#8217;s IP address it should go through the top-level \u2013&nbsp;1 bg, because it contains information on where the next level is located 2 superhosting and there the resolver can find the DNS record \u201e<strong>superhosting.bg=IP address<\/strong>\u201c. The idea that a domain consists of separate domains \/ levels is one of the most difficult to comprehend DNS feature.<\/p>\n<h5 style=\"margin: 16px auto;\"><strong><a title=\"DNS Lookup \u2013 Going from one Level to the Next&nbsp;(Name Resolution) | Blog SuperHosting.BG\" href=\"https:\/\/blog.superhosting.bg\/en\/dns-name-resolution-how-the-dns-works.html\">DNS Lookup \u2013 Going from one Level to the Next&nbsp;(Name Resolution)<\/a><br \/>\n<\/strong><\/h5>\n<p><a href=\"https:\/\/blog.superhosting.bg\/en\/dns-name-resolution-how-the-dns-works.html\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignright wp-image-32488 size-medium\" title=\"DNS Lookup \u2013 Going from one Level to the Next&nbsp;(Name Resolution)\" src=\"https:\/\/blog.superhosting.bg\/wp-content\/uploads\/2017\/11\/04-dns-recursive-query-how-the-dns-works-1024x439-300x129.png\" alt=\"DNS Lookup \u2013 Going from one Level to the Next&nbsp;(Name Resolution)\" width=\"300\" height=\"129\"><\/a>The DNS resolver is an application especially developed to perform DNS lookups in the Index.&nbsp;After the DNS resolver receives a query it initiates a DNS lookup as it sends a request to one of the root DNS servers. The resolver will find out where the authoritative name servers for the top-level domain .bg are located. From the .bg domain level it will get to know which are the authoritative servers for the next level \u2013 superhosting.bg, where the necessary record \u201esuperhosting.bg=IP address\u201c is stored.<\/p>\n<h5 style=\"margin: 16px auto;\"><a title=\"DNS Cache and TTL for DNS Records | Blog SuperHosting.BG\" href=\"https:\/\/blog.superhosting.bg\/en\/dns-cache-how-the-dns-works.html\"><strong>DNS Cache and TTL for DNS Records<\/strong><\/a><\/h5>\n<p><a href=\"https:\/\/blog.superhosting.bg\/en\/dns-cache-how-the-dns-works.html\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignright wp-image-32493 size-medium\" title=\"DNS Cache and TTL for DNS Records\" src=\"https:\/\/blog.superhosting.bg\/wp-content\/uploads\/2017\/11\/05-dns-cache-how-the-dns-works-1024x439-300x129.png\" alt=\"DNS Cache and TTL for DNS Records\" width=\"300\" height=\"129\"><\/a>Each DNS record has the so-called TTL (Time to Live) which is set up in seconds. The DNS cache server knows that the record is considered up-to-date during this time. After the time is over there will be a DNS lookup for the record and the DNS cache will get a new copy of the record. In other words, when a DNS record is stored in the DNS cache it will stay there for the set up TTL.<\/p>\n<h5 style=\"margin: 16px auto;\"><strong>Next topics of &#8220;What is DNS?&#8221; are coming soon:<\/strong><\/h5>\n<p><strong>DNS Records and DNS Zone<\/strong><\/p>\n<p><strong>Whois Details<\/strong><\/p>\n<div class=\"tipsupport04\"><em style=\"color: #666666; font-family: Trebuchet MS,Verdana,sans-serif; font-size: 16px;\"><strong>Bookmark Me:<\/strong><\/em><br \/>\nThis page will be updated when each new article of the &#8220;What is a DNS?&#8221; series is published. Add it to your browser&#8217;s bookmarks so that you can have quick access to an easy DNS guide.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The DNS is one of the most complicated to understand systems, that lies in the foundation of the Internet and exists before the Web appeared.<\/p>\n","protected":false},"author":16,"featured_media":62876,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[110],"tags":[204],"class_list":{"0":"post-32875","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-superhosting-technology-en","8":"tag-dns-en"},"aioseo_notices":[],"modified_by":"\u041c\u0430\u0434\u043b\u0435\u043d\u0430 \u041c\u0435\u0442\u043e\u0434\u0438\u0435\u0432\u0430","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/32875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=32875"}],"version-history":[{"count":3,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/32875\/revisions"}],"predecessor-version":[{"id":62877,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/posts\/32875\/revisions\/62877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media\/62876"}],"wp:attachment":[{"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=32875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/categories?post=32875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.superhosting.bg\/en\/wp-json\/wp\/v2\/tags?post=32875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}