Anwin Joselyn
Anwin Joselyn

Reputation: 21

Problems in DNS - Domain hosted on Gandi - DNS managed by Route 53

Problem - Unable to resolve my domain name theplaybook.rocks

Domain purchased from . - Gandi.net. DNS managed via Route 53 Hosted Zone. In Route 53 I have added A & AAAA records pointing to a CloudFront distribution. Similarly have created A & AAAA records for www subdomain. Changed Nameservers in Gandi.net to reflect what is in Route 53. Did not work for 2 days - still can't access my domain - Note: the cloudfront distributions work on browser. I have also set up alternate domain names in cloudfront to point correctly to my domain.

From here on everything I write are assumptions and what all I tried.

After it was not working I searched a lot on the internet and thought maybe there was an issue with "GLUE" records from https://intodns.com/theplaybook.rocks. So I added GLUE records in Gandi.net since I was told (by some site or the other) that they have to be added at the Registrar. However, after adding GLUE records by getting reverse ip of the aws Nameservers (which may not in itself by right - I don't know) Gandi.net informed that I have to add them to the Nameservers to take effect - which I tried by adding just in Route 53, then just in Gandi.net and then keeping them in both but to no avail.

I really have no clue where all I am going wrong. Thanks for any help.

Upvotes: 2

Views: 1998

Answers (2)

Anwin Joselyn
Anwin Joselyn

Reputation: 21

Solved

The problem was entirely of my own making. While developing I had configure localhost against the same domain name by editing etc/hosts file. Just checked on a different laptop on a whim and it is working fine there.

Thanks for the reply though.

Upvotes: 0

James Dean
James Dean

Reputation: 4451

The dns resolution is intermittent because you have a Mixed set of Nameservers configured.

Current Nameservers:
theplaybook.rocks.  86288   IN  NS  ns-1028.awsdns-00.org.
theplaybook.rocks.  86288   IN  NS  ns1.theplaybook.rocks.
theplaybook.rocks.  86288   IN  NS  ns-1814.awsdns-34.co.uk.
theplaybook.rocks.  86288   IN  NS  ns3.theplaybook.rocks.
theplaybook.rocks.  86288   IN  NS  ns2.theplaybook.rocks.
theplaybook.rocks.  86288   IN  NS  ns-618.awsdns-13.net.
theplaybook.rocks.  86288   IN  NS  ns-213.awsdns-26.com.
theplaybook.rocks.  86288   IN  NS  ns4.theplaybook.rocks.

The one of Route53 are correct and gives IP address:

dig theplaybook.rocks @ns-1028.awsdns-00.org +short
54.230.71.59
54.230.71.3
54.230.71.55
54.230.71.78

The other are not correct and not reachable:

>dig theplaybook.rocks @ns1.theplaybook.rocks

; <<>> DiG 9.10.6 <<>> theplaybook.rocks @ns1.theplaybook.rocks
;; global options: +cmd
;; connection timed out; no servers could be reached

If your DNS server queries to one of ns*.theplaybook.rocks, it will fail.

You need to make sure that you're only using AWS nameservers in Gandi. Remove the other 4.

Upvotes: 1

Related Questions