diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:14:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-17 01:41:52 +0200 |
commit | b45d9e86e41c453e0b57f2f8316bef06dee42e5a (patch) | |
tree | 9e68220643a27b3aaf685eede188ee0d1c2021d9 /src/resolve/resolved-dns-scope.c | |
parent | faec72d5dedae93f43c2dd624de1392ed9bacd80 (diff) |
resolved: fix check for mdns names
Diffstat (limited to 'src/resolve/resolved-dns-scope.c')
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 2 |
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; |