summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-query.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-02-13 17:09:09 +0300
committerSergey Bugaev <bugaevc@gmail.com>2021-02-22 14:51:29 +0300
commit4ad017cda57b04b9d65e7da962806cfcc50b5f0c (patch)
tree06eca76a3a415c73f0b21bae9a39bbb7faedc2fe /src/resolve/resolved-dns-query.h
parentb332778b30d23193c792d5f5c5dcccd61f4a489c (diff)
downloadsystemd-4ad017cda57b04b9d65e7da962806cfcc50b5f0c.tar.gz
resolved: set the AA bit for synthetic answers
The stub DNS server is authoritative for the RRs we synthesize, such as localhost, _gateway, and entries from /etc/hosts, and also for trust anchors. Partially fixes https://github.com/systemd/systemd/issues/17972
Diffstat (limited to 'src/resolve/resolved-dns-query.h')
-rw-r--r--src/resolve/resolved-dns-query.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-query.h b/src/resolve/resolved-dns-query.h
index 4874aa0c17..ea296167b6 100644
--- a/src/resolve/resolved-dns-query.h
+++ b/src/resolve/resolved-dns-query.h
@@ -134,6 +134,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(DnsQuery*, dns_query_free);
bool dns_query_fully_authenticated(DnsQuery *q);
bool dns_query_fully_confidential(DnsQuery *q);
+bool dns_query_fully_synthetic(DnsQuery *q);
static inline uint64_t dns_query_reply_flags_make(DnsQuery *q) {
assert(q);