+ dnsforward: add dnssec_enabled option

This commit is contained in:
Simon Zolin
2020-02-17 17:34:57 +03:00
parent 7ff743ab32
commit a5c2cdaf38
5 changed files with 85 additions and 4 deletions

View File

@@ -286,7 +286,15 @@ func logEntryToJSONEntry(entry *logEntry) map[string]interface{} {
if msg != nil {
jsonEntry["status"] = dns.RcodeToString[msg.Rcode]
opt := msg.IsEdns0()
dnssecOk := false
if opt != nil {
dnssecOk = opt.Do()
}
jsonEntry["answer_dnssec"] = dnssecOk
}
if len(entry.Result.Rule) > 0 {
jsonEntry["rule"] = entry.Result.Rule
jsonEntry["filterId"] = entry.Result.FilterID