[PATCH] Try nslookup for DNS test in linuxrc.s390 (#756608).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 loader/linuxrc.s390 |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 4bc1e8c..288dc12 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -2294,18 +2294,16 @@ function handle_dns() {
         while read dnsitem; do
             # Some network environment may prevent a DNS server from being
             # reachable by ping, so it would make sense to use nslookup.
-            # However, nslookup fails with "Resolver Error 0 (no error)"
-            # at this stage of the setup progress => not useful
             if ! $PING $dnsitem >& /dev/null; then
                 echo $"Could not ping DNS server: $dnsitem"
-#                if nslookup $dnsitem $dnsitem >& /dev/null; then
-#                    echo $" but could resolve DNS server with itself: $dnsitem"
-#                else
-#                    echo $"Could not resolve DNS server with itself: $dnsitem"
-#                    allgood="no"
-#                fi
-#            elif ! nslookup $dnsitem $dnsitem >& /dev/null; then
-#                echo $"Could not resolve DNS server with itself: $dnsitem"
+                if nslookup $dnsitem $dnsitem >& /dev/null; then
+                    echo $" but could resolve DNS server with itself: $dnsitem"
+                else
+                    echo $"Could not resolve DNS server with itself: $dnsitem"
+                    allgood="no"
+                fi
+            elif ! nslookup $dnsitem $dnsitem >& /dev/null; then
+                echo $"Could not resolve DNS server with itself: $dnsitem"
                 allgood="no"
             fi
         done < <(echo $DNS | sed 's/:/\n/g')
-- 
1.7.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux