[ldns-users] NSID support
Willem Toorop
willem at nlnetlabs.nl
Thu Sep 5 14:38:07 UTC 2019
Hi Vladimir,
I have attached a "small" example program (nsid-example.c) that
illustrates how to use the ldns_pkt_set_edns_data() and
ldns_pkt_edns_data() functions to set and get EDNS Options.
Here are some usage examples:
$ ./nsid-example
./nsid-example <upstream IP>
$ ./nsid-example 193.0.14.129
upstream 193.0.14.129, returned NSID: "ns2.nl-ams.k.ripe.net"
$ ./nsid-example 37.209.192.10
upstream 37.209.192.10, returned NSID: "dns5.mel"
$ ./nsid-example 9.9.9.10
upstream 9.9.9.10, returned NSID: "res210.ams.rrdns.pch.net"
$ ./nsid-example 8.8.8.8
Could not get EDNS data
Good luck and cheers,
-- Willem
On 03-09-19 11:29, Vladimir Levijev wrote:
> On Wed, Aug 14, 2019 at 7:00 PM Vladimir Levijev
> <vladimir.levijev at gmail.com> wrote:
>
> Hi,
>
>> Did I understand correctly that currently ldns library does not
>> support enabling NSID when doing a query and getting it from reply?
>>
>> E. g. from manpage of "dig":
>>
>> +[no]nsid
>> Include an EDNS name server ID request when sending a query.
>>
>> $ dig ... +nsid
>>
>> [...]
>> ;; OPT PSEUDOSECTION:
>> ; EDNS: version: 0, flags:; udp: 4096
>> ; NSID: 23 3a 68 16 3d 42 9b 72 ("foobar.tky")
>> [...]
>
> So, no ideas?
>
> Cheers,
>
> VL
> _______________________________________________
> ldns-users mailing list
> ldns-users at nlnetlabs.nl
> https://open.nlnetlabs.nl/mailman/listinfo/ldns-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsid-example.c
Type: text/x-csrc
Size: 2739 bytes
Desc: not available
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20190905/2a0e2b40/attachment.bin>
More information about the ldns-users
mailing list