nss-resolve: expose various source-disablement settings as variables
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 20 Dec 2021 13:16:44 +0000 (14:16 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Dec 2021 17:28:52 +0000 (02:28 +0900)
commit8ef114c692846b0a801807a087ee65a1c7c6c7c3
treeddd24eda454e89989161c2a5be62a092570ceec1
parent616779c345757fb7213cff12fb541db4c3b397b8
nss-resolve: expose various source-disablement settings as variables

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2006761:
> systemd-resolved always (reverse)-resolves the host's IP addresses and FQDN.
> This can be harmful when an application (for instance, a DNS zone manager) is
> installed on the same server instance.  That application would expect
> NXDOMAIN to be returned if the current server's IP does not belong in an
> already managed reverse zone.

This allows clients of nss-resolve to use the same config options that are
available through the dbus api and as command-line options to resolvectl.

The man page text is is mostly copied directly from
c6f20515ab600098b5c2871bae2e9ecab3b41555.
man/nss-resolve.xml
src/nss-resolve/nss-resolve.c
src/test/test-nss-hosts.c