FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-16-2012, 03:14 PM
David Cantrell
 
Default Try nslookup for DNS test in linuxrc.s390 (#756608).

---
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/:/
/g')
--
1.7.1

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

Thread Tools




All times are GMT. The time now is 09:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org