DEFAULT_RESOLVER google

This commit is contained in:
pvincent
2025-04-06 21:07:14 +04:00
parent 7a6a94f10a
commit 857315fe73
3 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ function build_dmz_certbot {
#TODO: check public ip available
my_ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
public_hostname=$(hostname -f)
public_ip=$(dig +short A "${public_hostname}" "@${FDN_NAMESERVER}")
public_ip=$(dig +short A "${public_hostname}" "@${DEFAULT_RESOLVER}")
if hostname -I | grep -q "$my_ip"; then
echo "My PUBLIC IP address is: <$my_ip>"