| Linode Forum https://forum.linode.com/ |
|
| Troubleshooting BIND configuration https://forum.linode.com/viewtopic.php?f=19&t=8475 |
Page 1 of 1 |
| Author: | chernevik [ Wed Feb 22, 2012 12:53 pm ] |
| Post subject: | Troubleshooting BIND configuration |
i'm trying to set up a Linode as a primary name server, using Linode DNS as a secondary. My nameservers appear to whois: Code: whois yyrrll.net But ns1.yyrrll.net isn't available: host ns1.yyrrll.net Host ns1.yyrrll.net not found: 3(NXDOMAIN) ns1.linode.com complains the transfer failed: Code: dig yyrrll.net @69.93.127.10 axfr I don't have errors in syslog, named-checkzone is OK for yyrrll.net, named-checkconf doesn't complain. The yyrrll.net zone is in the output of << rndc dumpdb -all >>, though this does have complaints about 'bad cache'. How do I go about troubleshooting this? |
|
| Author: | sednet [ Wed Feb 22, 2012 1:03 pm ] |
| Post subject: | |
Your domain name registrar has NS1.YYRRLL.NET set as one of your nameservers. Use your registrar's web interface to set the name servers for your domain to your linode and to linode's nameservers. dig +trace is a helpful tool. |
|
| Author: | dwfreed [ Wed Feb 22, 2012 1:39 pm ] |
| Post subject: | |
I have a few things: 1. If you're going to use Linode's nameservers, you really should have all of them in the nameserver list set in your registrar. 2. It doesn't look like you have a host entry for ns1.yyrrll.net set in the delegation, which creates a circular dependency. IIRC, GoDaddy has an "Add Host" link in their control panel. You'll want to set the IPv4 and IPv6 (if any) addresses for your Linode. 3. The "Bad Cache" thing in the dump file produced is a section heading; provided there's nothing under it, it's completely innocuous. 4. You won't be able to AXFR from Linode's nameservers unless you explicitly turned that on (and you probably shouldn't, as AXFRs create increased load on the servers) 5. Paste your yyrrll.net zone file so we can be sure it's set up right.(named-checkzone does syntax checking, and will warning when you do stuff that isn't allowed, but that's it.) Don't redact or change anything in it. 6. Paste your named.conf file so that we can check that it's configured properly. For this one, redact any rndc or other keys you have in there, but nothing else. |
|
| Author: | chernevik [ Wed Feb 22, 2012 1:59 pm ] |
| Post subject: | |
re 2 -- I believe I have set the host entry for ns1.yyrrll.net in the GoDaddy host panel, for that name and the linode IP address. Do you mean to set the hostname and IP address for the linode serving as host for ns1.yyrrll.net? db.yyrrll.net: Code: $TTL 3600 named.conf: Code: // This is the primary configuration file for the BIND DNS server named. named.conf.local:: Code: // Manage the file logs Thank you for looking at this. EDIT: possibly relevant detail: - the linode has hostname 'cheshire', which is not in the GoDaddy host designation at this writing (I'm going to add it after this) - bind9 is running under chroot; /etc/default/bind9 includes << OPTIONS="-u bind -t /var/bind/chroot" >> |
|
| Author: | dwfreed [ Wed Feb 22, 2012 2:07 pm ] |
| Post subject: | |
Okay, two more things: 1. Paste /etc/bind/named.conf.options 2. Check that BIND is actually running and allowing connections on port 53. Because this is a public authoritative server, allow-query needs to be set to all. |
|
| Author: | chernevik [ Wed Feb 22, 2012 2:12 pm ] |
| Post subject: | |
Checking for bind: Code: # ps aux | grep bind Not sure how to check for allowing connections on port 53, will post ...options and research |
|
| Author: | chernevik [ Wed Feb 22, 2012 2:15 pm ] |
| Post subject: | |
named.conf.options Code: // from wiki.debian.org/Bind9 Looking at this, the entries "Listen on local interfaces only" and "Accept requests for internal network only" seem a little strange. |
|
| Author: | chernevik [ Wed Feb 22, 2012 2:18 pm ] |
| Post subject: | |
On port 53: Code: root@cheshire:/etc/bind# nmap localhost |
|
| Author: | chernevik [ Wed Feb 22, 2012 2:19 pm ] |
| Post subject: | |
On port 53: Code: root@cheshire:/etc/bind# nmap localhost |
|
| Author: | dwfreed [ Wed Feb 22, 2012 2:34 pm ] |
| Post subject: | |
Okay, paste the output of `netstat -tunap` It looks like BIND isn't listening on the the public address of your Linode, and so nothing works. |
|
| Author: | chernevik [ Wed Feb 22, 2012 2:36 pm ] |
| Post subject: | |
How can you tell BIND isn't listening? Code: root@cheshire:~# netstat -tunap |
|
| Author: | dwfreed [ Wed Feb 22, 2012 4:18 pm ] |
| Post subject: | |
Because of the settings in named.conf.options. Debian's default layout for BIND's settings is messy and dumb. The following is most of my named.conf that I use for providing authoritative DNS from my Linode. Code: acl slaves {
|
|
| Author: | chernevik [ Wed Feb 22, 2012 6:03 pm ] |
| Post subject: | |
Thanks! I cribbed from that (basically took most of the options) and now have it working. Big help, spared me a wild goose chase, thanks. |
|
| Author: | otherbbs [ Sun Feb 26, 2012 7:22 pm ] |
| Post subject: | |
dwfreed wrote: 1. If you're going to use Linode's nameservers, you really should have all of them in the nameserver list set in your registrar.
Besides what dwfreed mentioned, it looks like you still have some work to do, as queries to ns{1.5].linode.com are being refused for your domain. Make sure you have 'allow-transfer' set appropriately. -- Travis |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|