Hi list,
I’m looking to implement with Unbound something similar to OpenDNS’s debug.opendns.com TXT record.
It’s a programmatic response to a query that responds with debug meta data, e.g.:
;; QUESTION SECTION:
;debug.opendns.com. IN TXT
;; ANSWER SECTION:
debug.opendns.com. 0 IN TXT “server 5.fra”
debug.opendns.com. 0 IN TXT “flags 20 0 2cc d00d82040001401”
debug.opendns.com. 0 IN TXT “id 381599”
debug.opendns.com. 0 IN TXT “source 217.254.45.71:14830”
debug.opendns.com. 0 IN TXT “dnscrypt enabled (7136666E76576A42)”
Has anyone done something like this? Is it possible to do with libunbound?
Best regards,
Maciej Soltysiak
I'm looking to implement with Unbound something similar to OpenDNS's
debug.opendns.com TXT record.
It's a programmatic response to a query that responds with debug meta data,
Most existing DNS implementations use records in the CHAOS class for
this.
With Unbound, take a look at daemon/worker.c and the `answer_chaos()`
function.
% dig +noall +answer -c chaos -t txt id.server
id.server. 0 CH TXT "barbican.spodhuis.org"
% dig +noall +answer -c chaos -t txt version.server
version.server. 0 CH TXT "unbound 1.5.3"
Has anyone done something like this? Is it possible to do with libunbound?
(here I have to defer to others, sorry)
I'm looking to implement with Unbound something similar to OpenDNS's
debug.opendns.com TXT record.
It's a programmatic response to a query that responds with debug meta data,
Sigh.
Most existing DNS implementations use records in the CHAOS class for this.
There's even an RFC: https://tools.ietf.org/html/rfc4892
Regards,
-drc