diff --git a/ip2host.sh b/ip2host.sh index 3d0cbf9..9fe2b4d 100755 --- a/ip2host.sh +++ b/ip2host.sh @@ -17,7 +17,7 @@ do # name=$(nslookup $ip| grep "name ="|sed 's/.*=//') # Uncomment following line to use dig (thanks to Charles Duffy) #name=$(dig +short -x $ip)i - if [ -z "$2"] + if [ -z "$2" ] then resolvedIP=$(dig +short +x "$ip") else