Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. It is the only server I have, so it is acting as both ns1, ns1, and the server they domain name should point to itself. It all appears to be working and when I dig the domain name from the server itself I get what seems to me the correct output:. I have given it more than enough time for the records to be refreshed since setting up the DNS server, so I don't know what would be causing this. Look at the last line - after Query time:. In your first example dig is querying the name server Each query is going to a different name server!
Why run your own DNS servers?
December 21, The domain name system is a critical part of the internet, but it is often overlooked. Broadly speaking, there are two types of DNS servers. Recursive resolvers are the type users are more likely to be familiar with. When your computer needs to perform a DNS lookup, it will ask a recursive resolver. Authoritative name servers are the source of truth in the domain name system. When you buy a domain name, in the most technical sense the thing you are buying is the right to act as the authoritative name server for that DNS zone. If you are interesting in learning more about DNS, this webcomic serves as a great introduction.
Computers that run DNS are called name servers. A very useful package for testing and troubleshooting DNS issues is the dnsutils package. There are many ways to configure BIND9. Some of the most common configurations are a caching nameserver, primary server, and secondary server. When configured as a caching nameserver BIND9 will find the answer to name queries and remember the answer when the domain is queried again. As a primary server, BIND9 reads the data for a zone from a file on its host and is authoritative for that zone. As a secondary server, BIND9 gets the zone data from another nameserver that is authoritative for the zone. It is possible to configure the same server to be a caching name server, primary, and secondary: it all depends on the zones it is serving.
Despite my woeful knowledge of networking, I run my own DNS servers on my own websites run from home. I used this site , but there are plenty out there. You will need two domains: one for your dns servers, and one for the application running on your host. I use dot.