DEFAULT_RESOLVER google
This commit is contained in:
+1
-1
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user