How to setup the DNS so the FQDN server serves its own DNS

domain-name-systemfqdnnameserver

Apologies if the question title is nonsensical, but this has me quite confused.
Here’s what I want to do:

Domain xyz.com is the FQDN for webserver xyz-1.
xyz-1 has Plesk installed.

I want xyz-1 to be able to serve the DNS for xyz.com, so that the nameservers for xyz.com are set to ns1.xyz.com and ns2.xyz.com.

I’m probably wording this incorrectly, but that’s essentially what I’m trying to do.

Additionally, any domains added to Plesk, with their nameservers set to ns1 and ns2.xyz.com would also have their DNS served correctly (duh?).

Best Answer

From the notes on another answer I realize this has already been figured out, but I thought it would be a good idea to outline the process for future people looking for an answer:

  1. Register your domain (example.com)

  2. At the registrar, you will need to registrar your name servers with the names you want to use (ns1.example.com and ns2.example.com) along with the IP addresses of your DNS servers (preferably on different networks in different geographic locations)

  3. Set up your DNS servers at those IP addresses.

  4. Set up the DNS servers to serve authoratatively for your domain name(s).

  5. In your zone file, be sure to like ns1.example.com in the SOA record as the master name server.

  6. Ensure that you create NS records within the zone file using the same entries that you used at the registrar.

  7. Create A records for the hostnames used (ns1 and ns2) within the zone file for the domain.

  8. Take a vacation and hope you don't have to mess with it again. :)

If, in the future, you need to move a DNS server:

  1. Set up the DNS server at the new location.

  2. Change the A record entry with the new IP address.

  3. Update the name server registration at the registrar with the new IP address of the server.

Related Topic