chiark / gitweb /
resolved: we are never authoritative for localhost
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2014 23:14:07 +0000 (01:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Jul 2014 23:41:52 +0000 (01:41 +0200)
src/resolve/resolved-dns-scope.c

index a39e705..7b5580f 100644 (file)
@@ -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"))