How can I tell if BIND/ DNS is running properly?
I've tried setting up BIND from a fresh install. I've followed a few tutorials (all seem to follow a similar routine), but it doesn't appear to work properly.
This is what happens when I query my domain:
This is my named.conf file:
I've compared both files to examples and they don't appear to be any different - I'm at a loss as to what is wrong or where I should start to troubleshoot it.
well you need to look in the relevant log files, that's always the place to start. check /var/log/messages (by default) for issues about the config, you could also look to do zone transfers of the zones to see exactly what it's aware of (dig -t axfr localhost)
Here's an example zone file from one of my systems:
$TTL 300 ; 5 minutes
domain.com IN SOA ns1.domain.com. hostmaster.domain.com. (
1296929899 ; serial
300 ; refresh (10 minutes)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
300 ; minimum (5 minutes)
srv01 A 10.20.11.53
srv02 A 10.20.11.54
srv03 A 10.20.11.75
rpm CNAME srv03
There are plenty of style issues between these but not necessarily causing issues. The main point I see that its stopping the request is the resolution of the ns1 and ns2 records. Where are these defined outside of this server? I'd guess that they are not and so your server is still totally isolated. At a basic level, is traffic every even hitting your machine? Pretty irrelevant what your config is if nothing else knows to ome to ask you any questions. Your domain registrar needs to hold the details of what name servers to forward too, and they appear to, but there is no A record available online for these already, so you need to provide them somewhere outisde of your server otherwise you've just got a loop - how do you get to the name server if the only thing that tells you where the name server is the name server itself!
Personally if you are more concerned with providing the resulting website than running DNS... don't run DNS. I use zoneedit.com to host DNS records nice and simply, althoguh your registrar may be able to provide a similar service for you as part of you sign up terms.
I forgot to add my thanks for this reply... Thanks!
|All times are GMT -5. The time now is 04:42 PM.|