diff --git a/scripts/dnsl b/scripts/dnsl index 1de71507..81906574 100755 --- a/scripts/dnsl +++ b/scripts/dnsl @@ -1,6 +1,6 @@ #!/bin/bash -ipaddress=$(dnslookup ${1} 149.112.112.112 | grep IN | grep -v \; | awk -F '\t' '{print $5}' | head -n 1) +ipaddress=$(host $1 | awk '{print $4}' | head -n 1) source /home/brian/.api_key.sh