9abf8c
From 605b45361ff9336bb9ac2526b5f7d50e7e33e99f Mon Sep 17 00:00:00 2001
9abf8c
From: Jan Macku <jamacku@redhat.com>
9abf8c
Date: Fri, 1 Nov 2019 14:58:56 +0100
9abf8c
Subject: [PATCH] Write dns values passed by ip argument to ifcfg-* files
9abf8c
9abf8c
(cherry picked from commit cb86c560b0da465e06c18df12308cb3f30fa4803)
9abf8c
9abf8c
Resolves: #1767100
9abf8c
---
9abf8c
 modules.d/45ifcfg/write-ifcfg.sh | 2 +-
9abf8c
 1 file changed, 1 insertion(+), 1 deletion(-)
9abf8c
9abf8c
diff --git a/modules.d/45ifcfg/write-ifcfg.sh b/modules.d/45ifcfg/write-ifcfg.sh
9abf8c
index 3bf847a5..abd111fc 100755
9abf8c
--- a/modules.d/45ifcfg/write-ifcfg.sh
9abf8c
+++ b/modules.d/45ifcfg/write-ifcfg.sh
9abf8c
@@ -270,7 +270,7 @@ for netup in /tmp/net.*.did-setup ; do
9abf8c
         done
9abf8c
     fi
9abf8c
     i=1
9abf8c
-    for ns in $(getargs nameserver); do
9abf8c
+    for ns in $(getargs nameserver) $dns1 $dns2; do
9abf8c
         echo "DNS${i}=\"${ns}\"" >> /tmp/ifcfg/ifcfg-$netif
9abf8c
         i=$((i+1))
9abf8c
     done
9abf8c