♻️ Used more simple host command for dnsl script

This commit is contained in:
z3rOR0ne 2022-08-09 21:56:45 -07:00
parent c2bd75d023
commit 0ae3afbf81

View file

@ -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