I'm migrating my nameserver machines from a datacenter into a cloud service (AWS) by replacing each of the physical machines with virtual machines. The nameservers I am migrating are authoritative for dozens of different domains.
During this process, I noticed something weird that has me confused:
The nameservers I want to migrate use the following authoritative nameservers:
ns1.example.com
ns2.example.com
example.com
is an old, legacy name for the nameservers and I am also the owner the example.com
domain. When I went to check the zone records at example.com
, I discovered the exact same zone records:
ns1.example.com
ns2.example.com
This was unexpected. Basically, the example.com
domain is authoritative for itself. I imagined I would have been using the registrar to manage the zone record and it would contain the ip addresses of each of the nameservers for example.com. Otherwise, what prevents the example.com name records from getting spoofed? Should I start using the registrar's nameservers to point to the authoritative name servers?
The current nameserver config was set up by someone else and I'm very rusty with setting up a DNS. Any guidance appreciated.