< ?php // Include PHP ZoneEdit class include('class.zoneedit.inc'); // Log into ZoneEdit $username = "UserName"; $password = "PassWord"; $zoneedit = &new zoneedit($username, $password); // Asign hosts to be updated $hosts = array(); $hosts[] = "yourdomain.com"; $hosts[] = "*.yourdomain.com"; $hosts[] = "www.yourdomain.com"; // Get IPs // IP currently stored in DNS $dnsIP = $zoneedit->get_ip('yourdomain.com'); // IP you domain should be $wanIP = $zoneedit->ip; // Update yourdomain.com if( $dnsIP != $wanIP ) $zoneedit->update_ip(implode(',', $hosts), $wanIP); ?>