diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:14:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:41:52 +0200 |
commit | faec72d5dedae93f43c2dd624de1392ed9bacd80 (patch) | |
tree | 977b4876037861d225764ed800ea95e528cf669c /src | |
parent | e1c959948c0e31d6997bcdfbabfbd077784b2bae (diff) |
resolved: we are never authoritative for localhost
Diffstat (limited to 'src')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 3 |
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")) |