ipconfig can sometimes complain that the label name is > 63 chars

This commit is contained in:
Frank Denis
2012-07-30 10:32:19 -07:00
parent da08e06073
commit bb7bcf904c
+1 -1
View File
@@ -16,7 +16,7 @@ ifs=$(echo $ifs)
typeset -A found
ips=""
for i in $ifs; do
ips_i=$(ipconfig getpacket $i | fgrep 'domain_name_server' | \
ips_i=$(ipconfig getpacket "$i" 2> /dev/null | fgrep 'domain_name_server' | \
sed -e 's/^.*{//' -e 's/,/ /g' -e 's/}//' )
for ip_i in $ips_i; do
if [ ! ${found["$ip_i"]} ]; then