resolv_wrapper and __res functions (was: Re: [PATCH 0/5] dns: Add authority record to replies)

Andrew Bartlett abartlet at
Mon Aug 10 02:22:11 UTC 2015

On Wed, 2015-08-05 at 08:48 +0200, Kai Blin wrote:
> On 30/07/15 13:24, Kai Blin wrote:
> Ok, after some more digging..
> > But also it looks like nsupdate keeps sending SOA requests and not
> > liking our reply. I'll investigate a bit more to find out what the 
> > heck
> > it's expecting.
> Something between `make testenv` and calling nsupdate with 
> seems to be misplacing the UDP packets from the server. Both 
> `nsupdate` 
> as well as `nsupdate -g` work just fine against an actual Samba AD DC 
> provisioned outside our test environment. Ok, `nsupdate -g` complains 
> about the TSIG coming from the server, but that's an unrelated bug.
> The PCAP file captured by socketwrapper in `make testenv` also looks 
> identical to what happens on the wire for a real system, but 
> `nsupdate` 
> still keeps resending the SOA request and not seeing the reply until 
> it 
> gives up claiming the name server could not be reached.
> So, seeing how that is an unrelated issue, can these patches go in 
> now?

I've reproduced the same thing.  I needed this patch (or at least the
__res_nquery part) to get that far however, as otherwise resolv_wrapper
was exiting the samba_dnsupdate binary with 255, unable to find
res_nquery when that has been defined aside to __res_nquery.

Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team
Samba Development and Support, Catalyst IT

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lib-resolv_wrapper-Find-the-correct-symbol-when-res_.patch
Type: text/x-patch
Size: 4031 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list