Our company recently updated our DNS settings so they could be managed in AWS Route53 via Terraform instead of manually managed in Google Domains. We have a site that sits on example.com
as well as two more sites that sit on stage.plus.example.com
and plus.example.com
.
example.com
and plus.example.com
work fine but stage.plus.example.com
has intermittent issues with DNS resolving and the NXDOMAIN
error being returned. This seems to depend which DNS resolver server you use but OpenDNS has persistent issues and Google has intermittent issues resolving for example. The setup of the DNS is something like:
- Google Domains is our registrar
- The nameservers for this are setup to go to a AWS Route53 hosted zone in AWS account 1 (HZ1)
- The HZ1 has an NS record for
plus.example.com
pointing to a hosted zone in AWS account 2 (HZ2)
- The HZ1 has an NS record for
stage.plus.example.com
pointing to a hosted zone in AWS account 3 (HZ3)
- HZ2 has an A record to a load balancer in the same AWS account
- HZ3 has an A record to a load balancer in the same AWS account
Using dig +trace ... @208.67.222.220
(OpenDNS servers) for both the plus.example.com
and stage.plus.example.com
seem return similar results with the A records showing in both.
However without the +trace
option then the stage.plus.example.com
is not found.
I've been banging my head against this problem for a while now to no avail so any help would be much appreciated!