[ldns-users] Ldns responses

Wouter Wijngaards wouter at nlnetlabs.nl
Mon Sep 24 07:14:14 UTC 2018


Hi Harish,

On 9/21/18 6:11 PM, Harish Holenarsipura Viswanatha wrote:
> Hello Wouter,
> 
> Thank you for the reply.

Of course.  The unbound library returns also the query in wire format in
the returned structure.  That could be used by ldns library functions in
some way.

Best regards, Wouter

> I have another doubt , does unbound resolver be integrated with LDNS
> server and return DNS responses to a query in wire format ?
> 
> Thanks 
> Harish Holenarsipura Viswanatha
> Contact No: +12132453716
> https://www.linkedin.com/in/harishhv-usc
> 
> 
> 
> On Fri, Sep 21, 2018 at 12:54 AM Wouter Wijngaards <wouter at nlnetlabs.nl
> <mailto:wouter at nlnetlabs.nl>> wrote:
> 
>     Hi Harish,
> 
> 
>     Not really.  In ldns there are functions to find information, like
>     ldns_dnssec_zone_find_rrset that finds by name and rrset type in the
>     information and that could be useful (depending on what you need).
> 
>     But unbound has libunbound, and it can return responses to a
>     function call, and recent unbound versions have the auth-zone
>     functionality.  This can be used to create a libunbound instance
>     that returns authority zone responses for a query from zone file
>     contents.  Right now that needs the libunbound call to read a
>     unbound.conf file, that contains an auth-zone directive, with a
>     zonefile pointed at where you want it.  And with for-downstream: yes
>     specified; that makes it return authority responses to the
>     libunbound calls, without that it would return recursive responses.
> 
>     If you then want to put that DNS response on the wire, and not do
>     something else with it, then there are authority DNS servers that do
>     the whole thing (a bit obvious, but I thought I would mention it),
>     like NSD and unbound with auth-zone configured.
> 
>     If the something else you want to do just means change a couple of
>     names, then unbound's local-data is in front of the auth-zone, and
>     would be processed first.  It can do some things, eg. return that
>     data instead.
> 
>     Best regards, Wouter
> 
> 
>     On 20/09/18 18:58, Harish Holenarsipura Viswanatha wrote:
>>     Hi, 
>>
>>     Is there away to generate DNS response  for a particular query
>>     from the zone file contents. 
>>
>>     Thanks
>>     Harish 
>>
>>
>>     _______________________________________________
>>     ldns-users mailing list
>>     ldns-users at nlnetlabs.nl <mailto:ldns-users at nlnetlabs.nl>
>>     https://open.nlnetlabs.nl/mailman/listinfo/ldns-users <https://urldefense.proofpoint.com/v2/url?u=https-3A__open.nlnetlabs.nl_mailman_listinfo_ldns-2Dusers&d=DwMDaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=mI_VoarRNHFnhitvUZnW1w&m=hzQjjXNFOW3bT5bgYZBUi4P_DiMaq6p_kPykvkZ2AnU&s=jjKKlSJ5rTSzsAF9xjxUuos5AHThT5MD86YZGcML3KI&e=>
> 
>     _______________________________________________
>     ldns-users mailing list
>     ldns-users at nlnetlabs.nl <mailto:ldns-users at nlnetlabs.nl>
>     https://urldefense.proofpoint.com/v2/url?u=https-3A__open.nlnetlabs.nl_mailman_listinfo_ldns-2Dusers&d=DwICAg&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=mI_VoarRNHFnhitvUZnW1w&m=hzQjjXNFOW3bT5bgYZBUi4P_DiMaq6p_kPykvkZ2AnU&s=jjKKlSJ5rTSzsAF9xjxUuos5AHThT5MD86YZGcML3KI&e=
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20180924/4b8fa386/attachment.bin>


More information about the ldns-users mailing list