diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-03 22:23:41 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-03 22:23:41 +0100 |
commit | 77209c3505fa856dae23ae566b729c862a9b71f4 (patch) | |
tree | f0f2ab1a376b791e80ae4716fcadda0e069cd9bb | |
parent | a98433c05c5cce62a6a17db74e49363a88156486 (diff) |
resolved: don't resolve the hostname "gateway" with LLMNR, leave that to nss-myhostname
-rw-r--r-- | src/resolve/resolved-dns-scope.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-scope.c b/src/resolve/resolved-dns-scope.c index 1ce2bb4366..a43359f8c5 100644 --- a/src/resolve/resolved-dns-scope.c +++ b/src/resolve/resolved-dns-scope.c @@ -334,7 +334,8 @@ DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, co if (s->protocol == DNS_PROTOCOL_LLMNR) { if (dns_name_endswith(domain, "in-addr.arpa") > 0 || dns_name_endswith(domain, "ip6.arpa") > 0 || - dns_name_single_label(domain) > 0) + (dns_name_single_label(domain) > 0 && + dns_name_equal(domain, "gateway") <= 0)) /* don't resolve "gateway" with LLMNR, let nss-myhostname handle this */ return DNS_SCOPE_MAYBE; return DNS_SCOPE_NO; |