I had a strange situation the last few days where I was pointing the DNS records from my registrar to my own DNS server and DNS was not propagating. I have done this before successfully and was under the impression that it was trivial until now. So when the domain took longer than 2 days to propagate, I decided to confront my registrar who pointed me to http://leafdns.com which stated the following:
ns1.mydomain.com - Nameserver is not authoritative for mydomain.com ns2.mydomain.com - Nameserver is not authoritative for mydomain.com None of the nameservers listed by the parent nameservers are both responsive and authoritative for your domain. This error is fatal and the domain is unresolveable.
I was buffled as to why this was happenning so I visited other services like https://viewdns.info/dnsreport/ which pointed to this:
Check that all nameservers respond: Oops! The following nameservers listed at the parent servers didn't respond to DNS requests: ns1.mydomain.com ns2.mydomain.com
Nameservers allow TCP connections: Oops! We couldn't connect to the following nameservers using TCP on port 53: ns1.mydomain.com ns2.mydomain.com
I started thinking that something was wrong with my firewall, so since yesterday I have been messing around with that, until I allowed all traffic through only to see no change to the above reports! What was going on? The only thing remaining was BIND. Something must be wrong in BIND. Why won't it communicate? I did have a quick look at syslog before, but didn't notice any errors.
So I checked BIND status, restarted it and checked the status again. Nothing to write home about.