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?).
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:
Register your domain (
example.com
)At the registrar, you will need to registrar your name servers with the names you want to use (
ns1.example.com
andns2.example.com
) along with the IP addresses of your DNS servers (preferably on different networks in different geographic locations)Set up your DNS servers at those IP addresses.
Set up the DNS servers to serve authoratatively for your domain name(s).
In your zone file, be sure to like
ns1.example.com
in the SOA record as the master name server.Ensure that you create
NS
records within the zone file using the same entries that you used at the registrar.Create
A
records for the hostnames used (ns1
andns2
) within the zone file for the domain.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:
Set up the DNS server at the new location.
Change the
A
record entry with the new IP address.Update the name server registration at the registrar with the new IP address of the server.
when you registered the domain xyz.com you had to write some dns servers and their ip addresses. is xyz-1 part of those ?
if is not then you need to add it. the web server has nothing to do with the dns server - in your scenario looks like the same server has two functions - dns and web server with Plesk.
if it is you already are serving dns requests from that server.
the way you can check is simple - open a terminal and type:
look at the output and that is what is nameserver for that zone.