summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-17 01:14:19 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-17 01:41:52 +0200
commitb45d9e86e41c453e0b57f2f8316bef06dee42e5a (patch)
tree9e68220643a27b3aaf685eede188ee0d1c2021d9 /src/resolve
parentfaec72d5dedae93f43c2dd624de1392ed9bacd80 (diff)
resolved: fix check for mdns names
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c
index 7b5580ffcc..1fa8401ed5 100644
--- a/src/resolve/resolved-dns-scope.c
+++ b/src/resolve/resolved-dns-scope.c
@@ -194,7 +194,7 @@ DnsScopeMatch dns_scope_test(DnsScope *s, const char *domain) {
if (dns_name_endswith(domain, "254.169.in-addr.arpa") ||
dns_name_endswith(domain, "0.8.e.f.ip6.arpa"))
return DNS_SCOPE_YES;
- else if (dns_name_endswith(domain, "local") ||
+ else if (dns_name_endswith(domain, "local") &&
!dns_name_single_label(domain))
return DNS_SCOPE_MAYBE;