{"id":12399,"date":"2023-05-08T08:11:57","date_gmt":"2023-05-08T11:11:57","guid":{"rendered":"https:\/\/made4it.com.br\/the-importance-of-a-provider-having-own-dns\/"},"modified":"2023-05-30T10:31:36","modified_gmt":"2023-05-30T13:31:36","slug":"the-importance-of-a-provider-having-own-dns","status":"publish","type":"post","link":"https:\/\/made4it.com.br\/en\/the-importance-of-a-provider-having-own-dns\/","title":{"rendered":"The importance of a provider having its own DNS"},"content":{"rendered":"\n<p>In this article, we will discuss the importance of a Provider having its own DNS and the benefits that this can bring to the security, reliability and scalability of a company&#8217;s online services.<\/p>\n\n<h3 class=\"wp-block-heading\">What is DNS?<\/h3>\n\n<p><strong>DNS<\/strong> is an acronym for <em>Domain Name System<\/em>, that is, a domain name system, this system is distributed and hierarchical, in the course of this article we will better understand what we use it for and how it works.<\/p>\n\n<p>Whenever you hear about names, domains, zones, it&#8217;s the <strong>DNS<\/strong> servers that will handle it. When you type your website in the browser, the path to reach the website is not done with the name but with an IP address, whether v4 or v6, and anyone who knows all these names and does this translation from name to IP address is the DNS server.<\/p>\n\n<p>Sure, the <strong>DNS<\/strong> server translates a name into an IP so we can browse, but how does that work?<\/p>\n\n<p>In Brazil we have thousands of registered domains, websites that you can access, imagine having to memorize the IP address of each one of them\u2026<br\/>When I wanted to access UOL, I would need to use the address: 200.147.35.149<br\/>When you want to access Google: 172.217.162.195<br\/>Facebook: 31.13.85.8<br\/>It would be quite difficult, wouldn&#8217;t it? <strong>DNS<\/strong> makes this easy for us, working like a phone book.<br\/>In a phone book we look for a person&#8217;s name and get their phone number, or even their address.<br\/>The DNS is a list that contains all the names of the websites and looking for the name we want to access we can find the IP address of the website, thus being able to browse the internet to the website.<\/p>\n\n<p>Whenever you access a website on your computer, it will make a query to find out the IP address of the website and you will be able to browse, it is done through a request that is sent to your recursive <strong>DNS<\/strong> server and it makes the Query. Let\u2019s now understand what this recursive server is, its role and how it works\u2026<\/p>\n\n<h3 class=\"wp-block-heading\">Recursive DNS<\/h3>\n\n<p>For everything to work the way I explained, there are some types of DNS servers to be configured, recursive is one of them. <\/p>\n\n<p>As I mentioned, when we type the name of the site in the browser, a query is made by the recursive server configured on your machine and then the server responds with an IP address for you to access the site. But how does he do it? Here comes the hierarchical and distributed system\u2026<\/p>\n\n<p>There are some servers on the internet that we call root servers, they are responsible for knowing the <strong>DNS<\/strong> servers responsible for the <strong>TLDs<\/strong> (<em>top-level domains<\/em>), the first domains that appear on a website that we want to access.<\/p>\n\n<p>There are more than one type of <strong>TLDs<\/strong>, such as <strong>ccTLDs<\/strong> (<em>country code top-level domains<\/em>) and <strong>gTLDs<\/strong> (<em>generic top-level domains<\/em>).<\/p>\n\n<p>The <strong>ccTLDs<\/strong> are top-level domains generally used for country identification, such as \u201c.br\u201d for Brazil. The <strong>gTLDs<\/strong> are generic top-level domains, as the name implies, an example is \u201c.com\u201d, \u201c.org\u201d and \u201c.info\u201d as well<\/p>\n\n<p>We call the <strong>DNS<\/strong> servers responsible for top-level domains, whether country code or generic, authoritative servers, they are the ones the root servers know, later on we will understand better about it<\/p>\n\n<p>But what about the subdomain of the site I want to access, such as \u201cfacebook\u201d from \u201cfacebook.com.br\u201d? It has its own authoritative server, and the authoritative servers of previous domains will know about it. \u201c.br\u201d knows \u201c.com\u201d, which knows \u201cfacebook\u201d.<\/p>\n\n<p>When you make the query on your recursive server, it knows the entire list of root servers that exist in the world, there are several distributed, and then the recursive asks them if they know the address of the name we want to access, the root servers inform the path for it to reach the authoritative server of <strong>TLD<\/strong>, in it we discover the authoritative servers of the subsequent domains, until the recursive server discovers which authoritative server of the subdomain I want to access, and in it I find the IP address of the name.<br\/>.<br\/>So when I access a website, the following steps are taken:<\/p>\n\n<p>1 &#8211; Client queries its <strong>recursive DNS<\/strong> server to discover the IP of a website it wants to access;<br\/>2 &#8211; Recursive asks the root server who has authority over the name that the client wants to access and it informs which is the <strong>authoritative DNS<\/strong> server of the TLD;<br\/>3 &#8211; The recursive server asks the authoritative server of the <strong>TLD<\/strong> which is the IP address of the name and it responds with the authoritative server of the subsequent domain;<br\/>4 \u2013 Again the recursive server asks the authoritative server of the domain when the IP address of the name we want to access and it answers us with the authoritative server of the subdomain.<br\/>5 \u2013 Finally, the recursive server asks the authoritative server of the subdomain which is the IP address of the name and is answered with the IP of the site we want to access.<br\/>6 &#8211; With the IP address provided by the authoritative server, the client responds recursively.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"371\" src=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1-1024x371.png\" alt=\"\" class=\"wp-image-12170\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1-1024x371.png 1024w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1-300x109.png 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1-768x278.png 768w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1-1536x556.png 1536w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/artigo-dns-1.png 1859w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n<h3 class=\"wp-block-heading\">Authoritative DNS<\/h3>\n\n<p>In the explanation about recursive, we talked about an authoritative server, but what is an authoritative DNS server?<\/p>\n\n<p>When we talk about an authoritative server, we are talking about the server where the names are registered with their IP addresses, they are the servers that have authority over the domains, or sometimes also called zones.<\/p>\n\n<p>For example, we at <strong>Made4IT<\/strong> have the domain &#8220;made4it.com.br&#8221; and this domain is managed on an authoritative server. So when someone needs to find our website&#8217;s IP address, the recursive server from which it was queried will go all the way to our authoritative server to receive the response of what the IP address is. The IP address that will be passed to the recursive goes according to the &#8220;pointing&#8221; that we configure in our DNS service inside the authoritative server. The note, as the name suggests, serves to tell which IP we need to get to to access that name.<\/p>\n\n<p>But the function of notes does not stop there, there are also other types. The note that says the <strong>IPv4<\/strong> of a name is type A, the one that says the <strong>IPv6<\/strong> of a name is type <strong>AAAA<\/strong>, we can also point a name to another name that would be the <strong>CNAME<\/strong> type, among other different types each for its due functionality.<\/p>\n\n<p>There are services on the internet where we can register our own domain, such as \u201c<strong>made4dns.com.br<\/strong>\u201d, as I mentioned earlier when we have a domain we need an authoritative server to manage it.<\/p>\n\n<p>There is the option of using our own authoritative server, or we can also manage the domain through an authoritative server located on the Internet, usually available where we rent the domain or there are services specifically for this that can be hired.<br\/>An authoritative server can also work with reverse domains, in which case it can also be called a reverse server. Let&#8217;s understand better about this next topic.<\/p>\n\n<h3 class=\"wp-block-heading\">Reverse DNS<\/h3>\n\n<p>A <strong>reverse server<\/strong> is nothing more than an <strong>authoritative DNS<\/strong> server. It can only have reverse domains configured, or \u201cnormal\u201d domains together, both work smoothly, so we don&#8217;t need two different servers.<\/p>\n\n<p>But what are these reverse domains? We use them to define the name of an IP address.<br\/>That&#8217;s right, the name of the IP address. When we type a website in the browser, we make a query with a name to find out what IP address it has. Now when we talk about reverse DNS, we query an IP address to find out what its name is, hence the name \u201creverse\u201d.<\/p>\n\n<p>The <strong>reverse domains<\/strong> are used to facilitate the diagnosis of problems, since they are consulted in tests such as when we use \u201c<em>traceroute<\/em>\u201d or some other program of the type. They also serve for validations in e-mail services, bringing greater security when there is an e-mail server that owns the domain.<\/p>\n\n<h3 class=\"wp-block-heading\">The importance of a provider having its own DNS<\/h3>\n\n<p>We always see recommendations regarding an internet provider having its own DNS server so that its end customers can browse the internet in a better way, in this case we are talking about recursive since we use it to browse, but why is that?<\/p>\n\n<p>A provider always seeks to provide the best quality internet for its customers, and a very important factor for us to be able to browse the internet is to have a recursive DNS server configured, the reason for this and how it works we already understand, but how to have a server within your network will improve navigation for your customers even more?<\/p>\n\n<p>When we make a request to a recursive server, we need to get to that server to be able to do it, and using external servers like the famous &#8220;8.8.8.8&#8221; (Google&#8217;s Recursive DNS Server), we need to go out to the internet and go all the way to the Google server where it runs, it runs its recursive server, and then this server makes the query to find out the IP of the site we need to access, then this response goes back all the way we did and only then can we access the site. But imagine all the way we do on the internet until we get to the Google server and then have to go back\u2026<\/p>\n\n<p>With a server within the provider&#8217;s own infrastructure, we shorten our path by making our navigation faster, as we will have a faster response.<br\/>Also, when we have our own server, we end up not depending on our upstream to use the DNS, as we don&#8217;t need to go out over the internet to make our request, so in case of a problem with the links, it won&#8217;t impact the DNS.<\/p>\n\n<p>This happens because when the recursive server makes the query to be able to answer the IP of a website we want to access, it may either need to go after that answer or have it already stored, which we call <strong>cache<\/strong>, that is, when we consult a website for the first time, it goes all the way between the root servers and the authoritative servers of the <strong>TLDs<\/strong>, but for the second time he already knows the site&#8217;s IP because he already had to look it up, so when that answer is in <strong>cache<\/strong> one of the steps is skipped and our question is answered even faster.<\/p>\n\n<p>With our <strong>own recursive server<\/strong> and a well-configured <strong>cache<\/strong>, we are able to respond to customers with the IP of a website they want to access more quickly and efficiently, thus improving their navigation.<\/p>\n\n<p>With this article we learned what <strong>DNS<\/strong> is, what types exist and <strong>why to have a server in your infrastructure.<\/strong> If you still have doubts about it, or if you need some support with your <strong>DNS server<\/strong>, or if you want to upload your <strong>own DNS<\/strong>, <a href=\"https:\/\/made4it.com.br\/en\/\" target=\"_blank\" rel=\"noopener\" title=\"Home\">Made4it<\/a> is available to assist you.<\/p>\n\n<p><em>Written by:<\/em><\/p>\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-1024x341.jpg\" alt=\"\" class=\"wp-image-12218\" width=\"601\" height=\"199\" srcset=\"https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-1024x341.jpg 1024w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-300x100.jpg 300w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-768x256.jpg 768w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-1536x512.jpg 1536w, https:\/\/made4it.com.br\/wp-content\/uploads\/2023\/05\/Luiz-Felipe-2048x683.jpg 2048w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A provider always seeks to provide the best quality internet for its customers, and a very important factor for us to be able to browse the internet is to have a recursive DNS server configured, the reason for this and how it works we already understand, but how to have a server within your network will improve navigation for your customers even more?<\/p>\n","protected":false},"author":13,"featured_media":12174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"postBodyCss":"","postBodyMargin":[],"postBodyPadding":[],"postBodyBackground":{"backgroundType":"classic","gradient":""},"footnotes":""},"categories":[296,501],"tags":[737,738],"class_list":["post-12399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network","category-servers","tag-dns-en","tag-own-dns"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/12399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/comments?post=12399"}],"version-history":[{"count":1,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/12399\/revisions"}],"predecessor-version":[{"id":12400,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/posts\/12399\/revisions\/12400"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media\/12174"}],"wp:attachment":[{"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/media?parent=12399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/categories?post=12399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/made4it.com.br\/en\/wp-json\/wp\/v2\/tags?post=12399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}