♻️ Used more simple host command for dnsl script
This commit is contained in:
parent
c2bd75d023
commit
0ae3afbf81
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue