change proper ip even if modifying TLD, closes: #661

This commit is contained in:
Antoine Beaupré 2006-06-23 04:05:39 +00:00
parent 26f5de3d51
commit 7b9d3e8007
1 changed files with 6 additions and 6 deletions

View File

@ -235,15 +235,15 @@ add_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
ip="$value"
else
ip="$PUBLIC_IP"
fi
if [ "$host" = "@" -o -z "$host" ]; then
change_host_ip "$domain" "$ip" || true
fqdn="$domain"
else
change_host_ip "$domain" "$ip" "$host" || true
fqdn="${host}.${domain}"
fi