From faec72d5dedae93f43c2dd624de1392ed9bacd80 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Jul 2014 01:14:07 +0200 Subject: resolved: we are never authoritative for localhost --- src/resolve/resolved-dns-scope.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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")) -- cgit v1.2.3-54-g00ecf