mirror of
https://github.com/systemd/systemd.git
synced 2024-10-26 17:27:41 +03:00
resolved: demote the fallback dns servers
This softens the behavior originally introduced ineded61e410
to apply only to the fallback dns servers. The intent is that the global FallbackDNS (instead of DNS) can now be used in conjunction with the per-link dns, providing a fallback behavior without introducing a scope overlap. References:eded61e410
(resolved: demote the global unicast scope, 2024-08-19)
This commit is contained in:
parent
760fa203c2
commit
d229e282d6
@ -219,8 +219,9 @@
|
||||
is sent to all DNS servers that are configured on links with the <varname>DefaultRoute=</varname>
|
||||
option set, as well as the globally configured DNS server.</para></listitem>
|
||||
|
||||
<listitem><para>If there is no link configured as <varname>DefaultRoute=</varname> and no global DNS
|
||||
server configured, one of the compiled-in fallback DNS servers is used.</para></listitem>
|
||||
<listitem><para>If there are no DNS servers configured on any link also configured as
|
||||
<varname>DefaultRoute=</varname> and no global DNS server configured, one of the compiled-in fallback
|
||||
DNS servers is used.</para></listitem>
|
||||
|
||||
<listitem><para>Otherwise the unicast DNS query fails, as no suitable DNS servers can be determined.
|
||||
</para></listitem>
|
||||
|
@ -778,6 +778,10 @@ DnsScopeMatch dns_scope_good_domain(
|
||||
if (!dns_scope_is_default_route(s))
|
||||
return DNS_SCOPE_NO;
|
||||
|
||||
/* Prefer suitable per-link scopes where possible */
|
||||
if (dns_server_is_fallback(dns_scope_get_dns_server(s)))
|
||||
return DNS_SCOPE_LAST_RESORT;
|
||||
|
||||
return DNS_SCOPE_MAYBE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user