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