xwtk
May 21, 2021, 12:17pm
1
Running Hestia 1.3.5
When domain IP is changed via v-change-web-domain-ip, DNS records do not change. However, when changed via Web GUI, it automatically changes, how to fix?
eris
May 21, 2021, 12:45pm
2
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
exec (HESTIA_CMD."v-change-web-domain-ip ".$v_username." ".escapeshellarg($v_domain)." ".escapeshellarg($_POST['v_ip'])." 'no'", $output, $return_var);
check_return_code($return_var,$output);
$restart_web = 'yes';
$restart_proxy = 'yes';
unset($output);
}
// Change dns domain IP
if (($v_ip != $_POST['v_ip']) && (empty($_SESSION['error_msg']))) {
exec (HESTIA_CMD."v-list-dns-domain ".$v_username." ".escapeshellarg($v_domain)." json", $output, $return_var);
unset($output);
if ($return_var == 0 ) {
exec (HESTIA_CMD."v-change-dns-domain-ip ".$v_username." ".escapeshellarg($v_domain)." ".escapeshellarg($v_newip_public)." 'no'", $output, $return_var);
check_return_code($return_var,$output);
unset($output);
$restart_dns = 'yes';
}
}
This file has been truncated. show original
See the code of /web/edit/web/index.php
There are 3 different requests:
v-change-web-domain-ip
v-list-web-domain
v-change-dns-domain-ip
There is also an check on the aliases…
xwtk
May 21, 2021, 1:37pm
4
This worked, made a DDoS protection software that changes the IP of the VPS once traffic over threshold, works perfectly, thanks again!
system
Closed
June 20, 2021, 1:37pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.