|
@ -195,7 +195,7 @@ function build_dmz_certbot { |
|
|
#TODO: check public ip available |
|
|
#TODO: check public ip available |
|
|
my_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) |
|
|
my_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) |
|
|
public_hostname=$(hostname -f) |
|
|
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 |
|
|
if hostname -I | grep -q "$my_ip"; then |
|
|
echo "My PUBLIC IP address is: <$my_ip>" |
|
|
echo "My PUBLIC IP address is: <$my_ip>" |
|
|