From 0ae3afbf81ba9b05d3f99834ea1039ccf1e686ea Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 9 Aug 2022 21:56:45 -0700 Subject: [PATCH] :recycle: Used more simple host command for dnsl script --- scripts/dnsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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