Michael B. Trausch
2012-Dec-08 22:37 UTC
[Samba] Samba4 DNS: "recursion requested but not available"
Hello all, This is with Samba 4.0.0rc6 with the built-in DNS server. Found the problem in Samba 4.0.0rc5 originally, then updated to see if bug had been fixed between rc5 and rc6. I am trying to get mail working for a subdomain that is being managed by Samba 4. I added an MX record, but the problem here is that the Samba 4 DNS server isn't replying with the record: ====================================================================[mbt at aloe ~]$ dig -t MX nautest.naunetcorp.com @s4.nautest.naunetcorp.com ; <<>> DiG 9.9.2-P1-RedHat-9.9.2-5.P1.fc18 <<>> -t MX nautest.naunetcorp.com @s4.nautest.naunetcorp.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOTIMP, id: 5782 ;; flags: qr rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;nautest.naunetcorp.com. IN MX ;; Query time: 2 msec ;; SERVER: 2001:470:c0a7:6::2#53(2001:470:c0a7:6::2) ;; WHEN: Sat Dec 8 16:21:38 2012 ;; MSG SIZE rcvd: 51 ==================================================================== The query should return the name and priority of the MX server that I have defined. The MX shows up in the "samba-tool dns query" output, so it's just the DNS server that isn't responding correctly. Is this a bug, or is this the result of something I've done wrong? Thanks, Mike
Kai Blin
2012-Dec-09 19:57 UTC
[Samba] Samba4 DNS: "recursion requested but not available"
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-12-09 08:37, Michael B. Trausch wrote: Hi Mike,> I am trying to get mail working for a subdomain that is being > managed by Samba 4. I added an MX record, but the problem here is > that the Samba 4 DNS server isn't replying with the record: > > ====================================================================> >[mbt at aloe ~]$ dig -t MX nautest.naunetcorp.com @s4.nautest.naunetcorp.com> > ; <<>> DiG 9.9.2-P1-RedHat-9.9.2-5.P1.fc18 <<>> -t MX > nautest.naunetcorp.com @s4.nautest.naunetcorp.com ;; global > options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: > NOTIMP, id: 5782^^^^^^ This one is the important bit. MX queries return NOTIMP. I'm a bit surprised about that because I was sure I had seen code in the dns update logc handling this. But apparently I forgot to add code to the query logic to actually return MX records. Sorry.> ;; flags: qr rd ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: > 1 ;; WARNING: recursion requested but not availableThis is just caused by our error handling code not bothering to set the 'recursion available' bit on error replies.> The query should return the name and priority of the MX server that > I have defined. The MX shows up in the "samba-tool dns query" > output, so it's just the DNS server that isn't responding > correctly. > > Is this a bug, or is this the result of something I've done wrong?This clearly is a bug in the DNS server. Attached is a patch that should fix MX queries for both the 4.0 release branch and master. I'm afraid we just missed the window for the 4.0.0 release, but I've opened bug #9485 in Samba Bugzilla to track this bug and get it in for the next bugfix release. Thanks for the catch and sorry for any inconvenience. Kai - -- Kai Blin Worldforge developer http://www.worldforge.org/ Wine developer http://wiki.winehq.org/KaiBlin Samba team member http://www.samba.org/samba/team/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDE7Q0ACgkQEKXX/bF2FpR9pgCfeV1AFdWyF2zHGCZXvy4LcgJ6 SYYAn04b4BCtCCc6oE/+zxA+fxu2S/49 =rGcM -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-dns-Add-support-for-MX-queries.patch Type: text/x-patch Size: 3332 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20121210/7849cf7a/attachment.bin>