From e01d05c4f2c2f69d2bb921853045b8f3df578800 Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Fri, 25 Aug 2023 20:58:45 -0700 Subject: [PATCH] update external IP fetcher script --- for_new_sovran_pros/sp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/for_new_sovran_pros/sp.sh b/for_new_sovran_pros/sp.sh index e9e3a69..a32345e 100644 --- a/for_new_sovran_pros/sp.sh +++ b/for_new_sovran_pros/sp.sh @@ -81,7 +81,7 @@ cat > /var/lib/njalla/njalla.sh <<- "EOF" #!/usr/bin/env bash -IP=$(wget -qO- https://ipecho.net/plain) +IP=$(dig @resolver4.opendns.com myip.opendns.com +short -4) ## Manually Add DDNS Script From Njalla User Account AFTER Install @@ -97,7 +97,7 @@ cat > /var/lib/external_ip/external_ip.sh <<- "EOF" #!/usr/bin/env bash -IP=$(wget -qO- https://ipecho.net/plain) +IP=$(dig @resolver4.opendns.com myip.opendns.com +short -4) echo "${IP}" > /var/lib/secrets/external_ip