| Linode Forum https://forum.linode.com/ |
|
| [SOLVED] Bind9: AXFR not coming through https://forum.linode.com/viewtopic.php?f=19&t=7378 |
Page 1 of 1 |
| Author: | NeonNero [ Fri Jul 08, 2011 7:54 am ] |
| Post subject: | [SOLVED] Bind9: AXFR not coming through |
I've been scratching my head for a while now, and I still can't figure out my problem here. I use one of my Linodes in Dallas as a primary DNS for my company, and we have the secondary DNS on our company's office network in Norway. Yet, when I attempt to query an AXFR for a whole domain from the office network, the query fails. Both DNS servers are authorative for the domain in question, and the IP segment of my office network is in the "allow-transfer" option. Yet, the transfer query fails. It has worked fine previously, but this has stopped working lately. The beginning of the Dallas Linode's /etc/bind/named.conf: Code: options {And yes, this Linode has two IP addresses, and my company's office network is 213.184.199.0/26 (213.184.199.1 - 213.184.199.63). From the server using the IP address 213.184.199.28: Code: $ dig @70.85.129.159 axfr by.com Querying other record types (A, MX, NS) works just fine, but it hinders the ability to propagate zone updates to the secondary DNS server. Any ideas what I'm missing? |
|
| Author: | otherbbs [ Sat Jul 09, 2011 12:02 am ] |
| Post subject: | Re: Bind9: AXFR not coming through |
Code: options {Unless you have any of the above allow- options in your zone(s) overriding them, I don't see anything abnormal. Some debug logging might be helpful. Something like this maybe: Code: logging {
-- Travis |
|
| Author: | NeonNero [ Sat Jul 09, 2011 5:35 am ] |
| Post subject: | |
Okay, that was somewhat creepy... I added the following to my named.conf (I kept adding categories to the list when it still failed without anything appearing in the log): Code: logging {
Searching out the IP address 213.184.199.28, which is where I'm testing my queries from, doesn't get me anywhere. Queries for "A" and "MX" records (ie. queries that come through) are listed in the log, but not queries for "AXFR" records. Any suggestions for other log configurations I can try to get more information? |
|
| Author: | db3l [ Sat Jul 09, 2011 6:35 am ] |
| Post subject: | |
Any chance that your office firewall changed recently? Maybe they're letting UDP DNS through (which most queries use) but not TCP (which is used for axfr, but can also be used if a truncated response to a regular query is received)? -- David |
|
| Author: | NeonNero [ Sat Jul 09, 2011 8:09 am ] |
| Post subject: | |
db3l wrote: Any chance that your office firewall changed recently? Maybe they're letting UDP DNS through (which most queries use) but not TCP (which is used for axfr, but can also be used if a truncated response to a regular query is received)?
No changes in my office's firewall that could explain this. And I should know, since I'm the one managing the office firewall. I just tried something else: I added 127.0.0.1 to the allow-transfer list below, restarted bind9, and tried the following: Code: $ dig @localhost axfr by.com Something mysterious is up, that's for sure. Bind version is 9.7.3, if that helps (latest from Debian repository). |
|
| Author: | db3l [ Sat Jul 09, 2011 2:59 pm ] |
| Post subject: | |
NeonNero wrote: db3l wrote: Any chance that your office firewall changed recently? Maybe they're letting UDP DNS through (which most queries use) but not TCP (which is used for axfr, but can also be used if a truncated response to a regular query is received)? No changes in my office's firewall that could explain this. And I should know, since I'm the one managing the office firewall. Hmm, ok, just to be complete, any firewall setup on your Linode that might interfere? Can you telnet (or nc, or whatever your favorite tcp connection test tool is) to port 53 on your Linode either locally or from your office? Can you see bind listening on that port for both udp and tcp? I'm just wondering if the failure to see anything in the log is due to the traffic never reaching bind rather than something in bind's configuration itself. -- David |
|
| Author: | NeonNero [ Sat Jul 09, 2011 6:49 pm ] |
| Post subject: | |
db3l wrote: NeonNero wrote: db3l wrote: Any chance that your office firewall changed recently? Maybe they're letting UDP DNS through (which most queries use) but not TCP (which is used for axfr, but can also be used if a truncated response to a regular query is received)? No changes in my office's firewall that could explain this. And I should know, since I'm the one managing the office firewall. Hmm, ok, just to be complete, any firewall setup on your Linode that might interfere? Can you telnet (or nc, or whatever your favorite tcp connection test tool is) to port 53 on your Linode either locally or from your office? Can you see bind listening on that port for both udp and tcp? I'm just wondering if the failure to see anything in the log is due to the traffic never reaching bind rather than something in bind's configuration itself. OK, now we're getting somewhere. Without even trying to telnet in, I did a netstat, first with -an just to see port 53 pop up on both tcp and udp. I then shut down the bind9 service to see if there was something else looking in, and even when bind wasn't running, I saw that something was listening on 0.0.0.0:53, both on tcp and udp, as well as their equivalents on tcp6 and udp6, which I found rather strange. Adding -p to the netstat command revealed that dnsmasq was running, for some reason. Shutting down dnsmasq and restarting bind9 appeared appeared to do the trick, as the axfr query from the remote machine was suddenly working again. It seemed that I had installed dnsmasq when I attempted to install openvpn (as part of a tutorial) some time ago, and hadn't noticed that something was wrong because bind9 hadn't been complaining during startup about the busy udp ports. In my case, I might as well just remove dnsmasq for now (since it's not really in use). Thanks for nudging me in the righ direction, guys! |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|