[ldns-users] NSID support

Vladimir Levijev vladimir.levijev at gmail.com
Thu Sep 5 15:23:41 UTC 2019


On Thu, Sep 5, 2019 at 5:38 PM Willem Toorop <willem at nlnetlabs.nl> wrote:

Hi Willem!

> 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

Wow, that works! Thank you a lot! ;-)

Cheers,

VL



More information about the ldns-users mailing list