[Samba] Samba4 DNS: "recursion requested but not available"

Kai Blin kai at samba.org
Sun Dec 9 12:57:08 MST 2012

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 available

This 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 Blin
Worldforge developer http://www.worldforge.org/
Wine developer http://wiki.winehq.org/KaiBlin
Samba team member http://www.samba.org/samba/team/
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

-------------- 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>

More information about the samba mailing list