avatarKasper Siig

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1397

Abstract

there (which it won’t in this case), it will send a request to your configured DNS server for the IP.</p><p id="d3e6">Because the DNS server doesn’t have the IP cached, it will reach out to a root server. This root server won’t have the IP stored either, but it will have a list over TLD servers. The DNS server will now reach out to the TLD server, and ask for the name server needed for medium.com</p><p id="f425">This is where the configuration of the name servers become important.</p><h1 id="e1ec">Name Servers</h1><p id="d226">Name servers are largely key-value stores. In this case it will contain the key will be <code>medium.com</code>, and as of writing this the value can be <a href="https://mxtoolbox.com/SuperTool.aspx?action=a%3amedium.com&amp;run=toolpage"><code>104.16.120.</code>127</a>. At some point during medium.com’s lifetime, they’ve decided to use Cloudflare as their DNS, however that doesn’t necessarily mean that’s their domain registrar. Maybe they bought their domain from GoDaddy.</p><p id="10dd">Assuming the above example is correct, Medium will have had to change their name servers, from using GoDaddy’s to using Cloudflare’s. So what does this mean in technical terms?</p><p id="a70c">As previously mentioned, the TLD server will respond with an authoritative name server, which your configured DNS server will request the IP from. In the above example, the TLD

Options

server has been told that it should no longer use GoDaddy to respond to requests for medium.com, but that it should use Cloudflare.</p><h1 id="7611">Conclusion</h1><p id="ad67">While DNS can sometimes seem like dark magic, in reality it’s an incredibly robust but relatively simple system. Name servers are basically giant key-value stores, and when you are changing them, you are telling the TLD server who should resolve requests to your domain.</p><figure id="b6d6"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*q8snkG3cBIz21Dkw"><figcaption></figcaption></figure><p id="a8ce"><b>Follow us on <a href="https://twitter.com/joinfaun">Twitter</a> </b>🐦<b> and <a href="https://www.facebook.com/faun.dev/">Facebook</a> </b>👥<b> and join our <a href="https://www.facebook.com/groups/364904580892967/">Facebook Group</a></b>💬<b>.</b></p><p id="86e7"><b>To join our community Slack </b>🗣️ <b>and read our weekly Faun topics </b>🗞️,<b>click here⬇</b></p><figure id="ee36"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*9oUI61xFXneOLtU0"><figcaption></figcaption></figure><figure id="9626"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*Tptt7fOzRsGnI1YN"><figcaption></figcaption></figure><h1 id="6789">If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h1></article></body>

What are Name Servers & Why Do You Need To Change Them?

Introduction

Have you ever had to set up a new domain? Well if you’re reading this, chances are the answer is yes. In many cases you won’t need to worry about name servers, and you can go on your merry way. However if you buy your domain at domain.com, but you want to use Cloudflare as your DNS, you’ll have to change your name servers. While this is usually well documented and an easy process, very few places tell why you have to do it.

Before answering the question that brought you here, you’ll first need to understand root servers and their role in DNS.

Root Servers

Root servers are the basis of DNS. Without them the whole thing simply wouldn’t work. They’re called root for a reason. The importance of them are best explained through an example. Let’s say that you want to access medium.com

We’ll start by assuming that everything has a cold cache, meaning nothing is stored anywhere. The first thing that will happen when you enter medium.com in your browser, is that your computer will reach out to your local resolver. If it can’t find the answer there (which it won’t in this case), it will send a request to your configured DNS server for the IP.

Because the DNS server doesn’t have the IP cached, it will reach out to a root server. This root server won’t have the IP stored either, but it will have a list over TLD servers. The DNS server will now reach out to the TLD server, and ask for the name server needed for medium.com

This is where the configuration of the name servers become important.

Name Servers

Name servers are largely key-value stores. In this case it will contain the key will be medium.com, and as of writing this the value can be 104.16.120.127. At some point during medium.com’s lifetime, they’ve decided to use Cloudflare as their DNS, however that doesn’t necessarily mean that’s their domain registrar. Maybe they bought their domain from GoDaddy.

Assuming the above example is correct, Medium will have had to change their name servers, from using GoDaddy’s to using Cloudflare’s. So what does this mean in technical terms?

As previously mentioned, the TLD server will respond with an authoritative name server, which your configured DNS server will request the IP from. In the above example, the TLD server has been told that it should no longer use GoDaddy to respond to requests for medium.com, but that it should use Cloudflare.

Conclusion

While DNS can sometimes seem like dark magic, in reality it’s an incredibly robust but relatively simple system. Name servers are basically giant key-value stores, and when you are changing them, you are telling the TLD server who should resolve requests to your domain.

Follow us on Twitter 🐦 and Facebook 👥 and join our Facebook Group💬.

To join our community Slack 🗣️ and read our weekly Faun topics 🗞️,click here⬇

If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇

DNS
Servers
Networking
Recommended from ReadMedium