e83cdd
From 543b1cff3c84af062da4d27ba81a9d394f44e4b6 Mon Sep 17 00:00:00 2001
e83cdd
From: Lukas Nykryn <lnykryn@redhat.com>
e83cdd
Date: Tue, 11 Feb 2020 14:14:20 +0100
e83cdd
Subject: [PATCH] dhclient-script: ipv6 uses different variables for
e83cdd
 nameservers
e83cdd
e83cdd
new_domain_name_servers and new_domain_search is only provided vit IPv4
e83cdd
e83cdd
see: https://src.fedoraproject.org/rpms/dhcp/blob/HEAD/f/dhclient-script#_148
e83cdd
(cherry picked from commit 962310483f473dbc8d71d70ba464d273b9808d31)
e83cdd
e83cdd
Resolves: #1795276
e83cdd
---
e83cdd
 modules.d/35network-legacy/dhclient-script.sh | 4 ++--
e83cdd
 1 file changed, 2 insertions(+), 2 deletions(-)
e83cdd
e83cdd
diff --git a/modules.d/35network-legacy/dhclient-script.sh b/modules.d/35network-legacy/dhclient-script.sh
e83cdd
index fc6ed0a3..f1a60005 100755
e83cdd
--- a/modules.d/35network-legacy/dhclient-script.sh
e83cdd
+++ b/modules.d/35network-legacy/dhclient-script.sh
e83cdd
@@ -75,8 +75,8 @@ setup_interface() {
e83cdd
 
e83cdd
 setup_interface6() {
e83cdd
     domain=$new_domain_name
e83cdd
-    search=$(printf -- "$new_domain_search")
e83cdd
-    namesrv=$new_domain_name_servers
e83cdd
+    search=$(printf -- "$new_dhcp6_domain_search")
e83cdd
+    namesrv=$new_dhcp6_name_servers
e83cdd
     hostname=$new_host_name
e83cdd
     [ -n "$new_dhcp_lease_time" ] && lease_time=$new_dhcp_lease_time
e83cdd
     [ -n "$new_max_life" ] && lease_time=$new_max_life
e83cdd