summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-09 17:38:05 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-10 11:28:02 +0100
commit7bcffc2efa266823d9c2da1d8536e7f9c6e70a32 (patch)
tree42eb47cbdd2eeec0da8b44fda35523c41285ce25 /src/resolve
parentaa44ee274ca0e4003c94f4d8d5f5fa9bdf911719 (diff)
resolved: honour RFC6761's ban on the invalid TLD
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-scope.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 4d83ac597c..ac44cf2343 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -441,6 +441,10 @@ DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, co
dns_name_equal(domain, "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)
return DNS_SCOPE_NO;
+ /* Never respond to some of the domains listed in RFC6761 */
+ if (dns_name_endswith(domain, "invalid") > 0)
+ return DNS_SCOPE_NO;
+
/* Always honour search domains for routing queries. Note that
* we return DNS_SCOPE_YES here, rather than just
* DNS_SCOPE_MAYBE, which means wildcard scopes won't be