]> git.ipfire.org Git - ipfire-2.x.git/commit
test if nameservers with DNSSEC support return "ad"-flagged data
authorPeter Müller <peter.mueller@link38.eu>
Sun, 4 Mar 2018 17:26:52 +0000 (18:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Mar 2018 15:19:55 +0000 (15:19 +0000)
commit438da7e0a012cb979e77efcb923ab86b9078fb57
tree1c7705e72ca86adaca79c9ed88b990fce39601d5
parent9d5e5eb01240cad610088fe2ea6b5b68e4f5e5ee
test if nameservers with DNSSEC support return "ad"-flagged data

DNSSEC-validating nameservers return an "ad" (Authenticated Data)
flag in the DNS response header. This can be used as a negative
indicator for DNSSEC validation: In case a nameserver does not
return the flag, but failes to look up a domain with an invalid
signature, it does not support DNSSEC validation.

This makes it easier to detect nameservers which do not fully
comply to the RFCs or try to tamper DNS queries.

See bug #11595 (https://bugzilla.ipfire.org/show_bug.cgi?id=11595) for further details.

The second version of this patch avoids unnecessary usage of
grep. Thanks to Michael Tremer for the hint.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/unbound