diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-02-03 17:16:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-02-03 17:16:11 +0100 |
commit | f4526f82c9871196a03ab6ba3c6776b250796302 (patch) | |
tree | 34f2dba651be38d060cdac66fd9ff507a0828dbb /src/resolve/resolved-dns-synthesize.c | |
parent | fix italian translations to display unit name (diff) | |
download | systemd-f4526f82c9871196a03ab6ba3c6776b250796302.tar.xz systemd-f4526f82c9871196a03ab6ba3c6776b250796302.zip |
resolved: maintain only a single list of "dont-resolve" domain names
Follow-up for: 46b53e8035fb60c9a7f26dd32d6689ab3b7da97c
Diffstat (limited to 'src/resolve/resolved-dns-synthesize.c')
-rw-r--r-- | src/resolve/resolved-dns-synthesize.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/resolve/resolved-dns-synthesize.c b/src/resolve/resolved-dns-synthesize.c index 0914515fdf..9712322a0a 100644 --- a/src/resolve/resolved-dns-synthesize.c +++ b/src/resolve/resolved-dns-synthesize.c @@ -397,11 +397,8 @@ int dns_synthesize_answer( if (dns_name_is_empty(name)) { /* Do nothing. */ - } else if (dns_name_endswith(name, "0.in-addr.arpa") > 0 || - dns_name_equal(name, "255.255.255.255.in-addr.arpa") > 0 || - dns_name_equal(name, "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa") > 0 || - dns_name_endswith(name, "invalid") > 0) { - + } else if (dns_name_dont_resolve(name)) { + /* Synthesize NXDOMAIN for some of the domains in RFC6303 + RFC6761 */ nxdomain = true; continue; |