resolved: set the AA bit for synthetic answers
authorSergey Bugaev <bugaevc@gmail.com>
Sat, 13 Feb 2021 14:09:09 +0000 (17:09 +0300)
committerSergey Bugaev <bugaevc@gmail.com>
Mon, 22 Feb 2021 11:51:29 +0000 (14:51 +0300)
commit4ad017cda57b04b9d65e7da962806cfcc50b5f0c
tree06eca76a3a415c73f0b21bae9a39bbb7faedc2fe
parentb332778b30d23193c792d5f5c5dcccd61f4a489c
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
src/resolve/resolved-dns-query.c
src/resolve/resolved-dns-query.h
src/resolve/resolved-dns-stub.c