summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-17 01:14:07 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-17 01:41:52 +0200
commitfaec72d5dedae93f43c2dd624de1392ed9bacd80 (patch)
tree977b4876037861d225764ed800ea95e528cf669c
parente1c959948c0e31d6997bcdfbabfbd077784b2bae (diff)
resolved: we are never authoritative for localhost
-rw-r--r--src/resolve/resolved-dns-scope.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index a39e705a3b..7b5580ffcc 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -187,6 +187,9 @@ DnsScopeMatch dns_scope_test(DnsScope *s, const char *domain) {
if (dns_name_root(domain))
return DNS_SCOPE_NO;
+ if (is_localhost(domain))
+ return DNS_SCOPE_NO;
+
if (s->type == DNS_SCOPE_MDNS) {
if (dns_name_endswith(domain, "254.169.in-addr.arpa") ||
dns_name_endswith(domain, "0.8.e.f.ip6.arpa"))