DNS for Web Servers

So let’s talk about how DNS gets set up for a website. ​First, we need a domain name. ​We can buy domain names like SettingUpDNSIsFun.example.com. ​We can purchase domain names like this from companies called Domain ​registrars like Godaddy.com or BlueHost.com. Pasted image 20260625185631  ​Pros tip, if you don’t want to utilize cloud hosting services, ​you can just run your own web server

 ​Let’s assume that we do want to host our website files ourselves. 

​From here, ​we still need to point our new domain name to where our web content is located. ​We can do this in two ways:

  1. ​Most domain registrars can provide you with DNS settings and ​you can give the IP address of where your content is stored. 
  2. ​If you decide not to use your domain registrar to host DNS for you, ​then you have to set up an authoritative DNS server for your website. ​Since we own the domain name and host our web content ourselves, it makes sense for ​us to have the DNS servers that know that information Pasted image 20260625185743