From 0f8beae7426dfc1fdb75c993a505672d9dd2ec0f Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Thu, 11 Jun 2020 09:09:42 +0200 Subject: system: T2486: migrate disable-dhcp-nameservers to name-servers-dhcp The previous implementation only supported disabling DHCP nameservers for all interfaces, and was implemented improperly so it didn't work anyway. This migrates it to name-servers-dhcp , which allows us to enable just the interfaces we want to use for system DNS, identical in syntax to 'service dns forwarding dhcp '. The migrator searches through all interfaces that have address 'dhcp(v6)?' and adds them to the name-servers-dhcp list if disable-dhcp-nameservers is not set, else it does nothing. --- interface-definitions/dns-domain-name.xml.in | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'interface-definitions/dns-domain-name.xml.in') diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in index eeaa5b2c1..3b5843b53 100644 --- a/interface-definitions/dns-domain-name.xml.in +++ b/interface-definitions/dns-domain-name.xml.in @@ -5,7 +5,7 @@ - Domain Name Server (DNS) + Domain Name Servers (DNS) used by the system (resolv.conf) 400 ipv4 @@ -22,6 +22,16 @@ + + + Interfaces whose DHCP client nameservers will be used by the system (resolv.conf) + 400 + + + + + + System host name (default: vyos) @@ -56,20 +66,12 @@ - - - Disable DHCP updates of DNS settings - 300 - - - Map host names to addresses 400 - Host name for static address mapping -- cgit v1.2.3