[getdns-api] opcode
Willem Toorop
willem at nlnetlabs.nl
Sat Mar 26 20:01:50 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Op 26-03-16 om 19:59 schreef Tom Pusateri:
> Thanks for all the work on getdns so far. I’m not sure if this is
> the right list so apologies in advance if it is not and please
> direct me to the right place for api questions.
Thank you Tom,
This list is the correct place for this.
> I was looking at using getdns for a test tool and didn’t see a way
> to specify the opcode in the DNS header in a request. In my
> particular case, I am trying to implement a test client for
> draft-ietf-dnssd-push-06. Maybe I overlooked it and thought I would
> check if I missed something. If not, does it make sense to add this
> to the getdns_general() api?
That isn't possible yet. The extension dict would be the most
appropriate place for this I think. A "set_header" or maybe even just
a "header" extension key with as its context the things that can be
set with the various pieces of the dns header "id", "qr", "opcode",
"aa", "tc", "rd", "ra", "z", "rcode".
I'll try to make up some text for section 3.7 of the spec;
> Otherwise, I will look at ldns.
With ldns it is possible to create a query packet with ldns_pkt_new(),
alter it's opcode with ldns_pkt_set_opcode(), and send it out with
ldns_send().
With our implementation of the getdns it is also possible to construct
packets (dns messages) but there is no getdns_send() function (yet).
It would be trivial to add though. I'll bring it up for discussion
with our team...
Thanks,
- -- Willem
> Thanks, Tom
>
> P.S. The API site (http://getdnsapi.net/spec.html) says to email
> team at getdnsapi.net but this address bounces. It also references
> https://www.vpnc.org/mailman/listinfo/getdns-api which no longer
> exists.
Ah.. that's clumsy. I fixed the team at getdnsapi.net address. The
reference to the vpnc list will be changed as soon as we have a new
spec (which might well be very soon).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJW9uquAAoJEOX4+CEvd6SYeGcQAKTDKTJgLBCqXurr3U8c43vK
MYs3toe07A1Jh52dpV99QPDzRq9HcJzabNMQ/GrOtNAU5A61LjWcffOLR9Eh5prE
MtGCkzMXUW9OyPjiaICnmCCIYk1eNF6PGTTtCVLFwvRzKu63SP8Kb/Z4W72gx7Y+
jiL0KHF5OiSyzPvR8lwGwqTN4RUT7vg8iurE7HFC/UMy0MngepGwQzJCMTRli2uP
84G+nixpZKuCf9BdGyP2jRXrybmRutUm+ixMtoQrP0azvOcICwb6SKKXGgNZCQoQ
NAzqhy+gS+aDJFUZYGqrliRmo4xaRokNHYpdnWumxH7FZBNnVk4GSBlPUA9U5HVl
KHJ68s1ObQ9l+cnIpRI7FoBi4DclSm7JHDRis0r1jBADQz5kaQIu/8FH38yfbJz1
m5BZ5Y2147yhjeVPdyvsupWcHDGBEXBknPkvZqvvyQV7//+9HOnpq3q6UxkZNdjY
7xEDJofHJPNh/aR1z2dGeAxcK2wNV4wxQgc4fEfgiVYSc9TNuDftb8kGVkqb7XSI
UXiBiElRNcWJRdU7PfQJa+k5GQUvSZuJvzcFndJHq9ifbaZD54ctoB7gGchlnak1
IFxxkKbSYbVs9xB6WStlswJ4jALl3G8Hvk67o0uMSdbETfqkhOXgGOjDD75TEYru
Ae+t+ciqxkjnaX9eBt9l
=mtQR
-----END PGP SIGNATURE-----
More information about the spec
mailing list