It's hard to change for database but you can use this trick on template.
Imagine your old ip is 111.111.111.111 and new ip is 222.222.222.222. Copy /home/djbdns/tpl/domains.conf.tpl to custom.domains.conf.tpl and then edit this custom file:
from:
...
case "a":
$key = $o->hostname;
$value = $o->param;
...
if (isset($arecord[$value])) {
$rvalue = $arecord[$value];
...
...
case "a":
$key = $o->hostname;
$value = $o->param;
if ($value === '178.32.23.43') { $value = '123.123.123.123'; }
...
if (isset($arecord[$value])) {
$rvalue = $arecord[$value];
if ($rvalue === '111.111.111.111') { $rvalue = '222.222.222.222'; }
...
and then run 'sh /script/fixdns; /script/restart-services'.
Remember, this trick not change ip on database and still need change manually next times.