We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3181123 commit 2d82352Copy full SHA for 2d82352
bin/v-change-dns-domain-ip
@@ -39,11 +39,15 @@ is_object_unsuspended 'dns' 'DOMAIN' "$domain"
39
# Action #
40
#----------------------------------------------------------#
41
42
+# Get old ip
43
+get_domain_values 'dns'
44
+old=$IP
45
+
46
# Changing ip
47
update_object_value 'dns' 'DOMAIN' "$domain" '$IP' "$ip"
48
49
# Changing records
-sed -i "s/$old_ip/$ip/g" $USER_DATA/dns/$domain.conf
50
+sed -i "s/$old/$ip/g" $USER_DATA/dns/$domain.conf
51
52
# Updating zone
53
update_domain_zone
0 commit comments