I set up my own dynamic DNS server with Bind on Debian Jessy. Everything is running fine and smooth. The actual ddns update is done with nsupdate (executed by php on the same server). The php link itself is encrypted with https but I wondered whether the nsupdate command which also includes the ddns secret key string is encrypted somewhat, too? Theoretically and generally spoken, if it weren't encrypted someone could read the secret key during the transmission which would allow him to send ddns updates himself to a server?
If so, is there a way to ensure the nsupdate is only run locally (since it is executed on the same/my server anyway) or some other security measure? Currently, the lines use the server's official DNS name within the nsupdate command instead of 'localhost' or something (not sure if that is even supported):
server ns1.external-domain-name.de
zone external-domain-name.de.
key ddns.external-domain-name.de.key MySecretKey12345
update delete ddns.external-domain-name.de.
update add ddns.external-domain-name.de 60 A
send