use ip4 and not www, if you use www it deletes the ip4 address of the host and updates only the ip6 address
the servername of the server that has the upd.php file was not correct