aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 15:34:04 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-21 12:10:07 +0100
commit7ece6f58970710207ee29dabc7fc2920dca4b335 (patch)
tree9238770cd5a936630a57986b99a92a79b4658fd3 /src/network/networkd-network.c
parentnetworkd: small simplification (diff)
downloadsystemd-7ece6f58970710207ee29dabc7fc2920dca4b335.tar.gz
systemd-7ece6f58970710207ee29dabc7fc2920dca4b335.tar.bz2
systemd-7ece6f58970710207ee29dabc7fc2920dca4b335.zip
networkd: permit DNS "DefaultRoute" configuration in .network files
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 16a48a8a6..ccc1c3ce8 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -168,6 +168,7 @@ int network_load_one(Manager *manager, const char *filename) {
.lldp_mode = LLDP_MODE_ROUTERS_ONLY,
+ .dns_default_route = -1,
.llmnr = RESOLVE_SUPPORT_YES,
.mdns = RESOLVE_SUPPORT_NO,
.dnssec_mode = _DNSSEC_MODE_INVALID,
@@ -657,7 +658,6 @@ int config_parse_domains(
* routing domain, unconditionally. */
is_route = true;
domain = "."; /* make sure we don't allow empty strings, thus write the root domain as "." */
-
} else {
r = dns_name_normalize(domain, 0, &normalized);
if (r < 0) {