[ldns-users] Fwd: Regarding dns resolver in c using ldns

Willem Toorop willem at nlnetlabs.nl
Thu May 12 09:35:22 UTC 2016


Hi Ravin,

I suspect you want to use ldns_resolver_push_nameserver to target a
server directly with a query.  See attached example for its usage.

Best regards,

-- Willem

Op 12-05-16 om 06:39 schreef ravin goyal:
> Hii
> 
> I am trying to implement dns resolver in C using ldns and following
> example codes given on website i implemented basic dns resolver for
> TXT records
> 
> But main concern is i want to set a static server address rather than
> looking up /etc/resolv.conf file
> 
> And for that i have found ldns_resolver_set_source is what i actually
> need for this
> but i don't see any working example/code to use this function
> 
> I followed the docs but i still in middle of how I am going to use
> this function.
> Any help??
> 
> Regards
> Ravin
> _______________________________________________
> ldns-users mailing list
> ldns-users at open.nlnetlabs.nl
> https://open.nlnetlabs.nl/mailman/listinfo/ldns-users
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: push_nameserver_example.c
Type: text/x-csrc
Size: 1030 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20160512/faa46dc1/attachment.bin>


More information about the ldns-users mailing list