# place something like this in /etc/sudoers.d/dyndns www-data ALL = NOPASSWD: /usr/local/bin/nsupdate_dyndns