When you install Ubuntu server, the default Ubuntu server will only store the core system, but there is an option to add additional server roles. One of these is a "DNS Server".
From what I read, when you add this choice to your installation, Ubuntu adds the bind9
and bind9-doc
packages to your system. These packages provide the Bind 9 DNS server and its documentation. Now in fact a DNS server is simply a technology that takes a host name and automatically finds the IP address for that host on the Internet. Whenever you purchase a domain, for example, on Godaddy, you have the option on their website to point that hostname at your public IP address. It's that simple. So why would anyone need to set up a DNS server on their Ubuntu installation?
This is a very open question, there are lots of reasons to run a local DNS server. I'll give you why we use it at work:
Some people run a local DNS server on their LAN for samba, apache, and Kerberos so that users on the LAN can use hostnames similar to what you describe for godaddy. Sounds as if you have no need for a local DNS server.
I actually also use GoDaddy, so I know what you're talking about.
Here is the process of what happens so that a computer elsewhere in the world is able to visit your IP address using your domain name:
Of course, they say that "this takes time - 24-48 hours" but I usually see it move much quicker than this. American name servers will usually be updated with your new pointing information within like 10 minutes. Here is an extremely useful and very cool site for monitoring how your domain name is updated on name servers around the world: https://www.whatsmydns.net/
The top practical reason an individual would want to set up a DNS server on their machine is because they have a dynamic IP address and want to automate the process of updating their name server with their IP address when it changes. I am in the process of learning how to do this but I suspect I can find a way using
curl icanhazip.com
and checking it against a text file with the results of my last check.Hope I provided some clarity!
-Pierre