I'm trying to make a query, using libunbound, with some RDATA within the edns
part of the message. Is there a way to do this?
Looking at libunbound 1.4.6, there doesn't seem be a way to add rdata entries
to the EDNS data in a query. A quick peek inside libunbound/libworker.c
sugests that edns0 rdata is never actually considered, only the edns flags for
(do, ttl, etc).
I'm trying to make a query, using libunbound, with some RDATA within the edns
part of the message. Is there a way to do this?
Make libunbound do such a specific query? That is not its design. It
performs recursive lookups and DNSSEC validation.
Looking at libunbound 1.4.6, there doesn't seem be a way to add rdata entries
to the EDNS data in a query. A quick peek inside libunbound/libworker.c
sugests that edns0 rdata is never actually considered, only the edns flags for
(do, ttl, etc).
What you are looking for is perhaps ldns (nlnetlabs.nl/projects/ldns) in
which you can create an ldns_resolver object, and create a packet object
that you want to send out. You then want to include this edns part into
the packet you send out with ldns_pkt_set_edns_data().