change proper ip even if modifying TLD, closes: #661
This commit is contained in:
parent
26f5de3d51
commit
7b9d3e8007
|
@ -235,15 +235,15 @@ add_host() {
|
||||||
|
|
||||||
delete_host "$domain" "$host"
|
delete_host "$domain" "$host"
|
||||||
|
|
||||||
if [ "$host" = "@" -o -z "$host" ]; then
|
|
||||||
change_host_ip "$domain" "$PUBLIC_IP" || true
|
|
||||||
fqdn="$domain"
|
|
||||||
else
|
|
||||||
if [ "$host_type" = "$TYPE_IP" ]; then
|
if [ "$host_type" = "$TYPE_IP" ]; then
|
||||||
ip="$value"
|
ip="$value"
|
||||||
else
|
else
|
||||||
ip="$PUBLIC_IP"
|
ip="$PUBLIC_IP"
|
||||||
fi
|
fi
|
||||||
|
if [ "$host" = "@" -o -z "$host" ]; then
|
||||||
|
change_host_ip "$domain" "$ip" || true
|
||||||
|
fqdn="$domain"
|
||||||
|
else
|
||||||
change_host_ip "$domain" "$ip" "$host" || true
|
change_host_ip "$domain" "$ip" "$host" || true
|
||||||
fqdn="${host}.${domain}"
|
fqdn="${host}.${domain}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue