This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // *** PHP script to automate nsupdate calls for dynamic dns updates. | |
| // *** This script and a properly configured bind nameserver allows hosting | |
| // *** of custom dyndns services, e.g. updating own domain from Fritzbox. | |
| // *** usage: http://192.168.0.25/nsupdate.php?ns=ns0.mynameserver.de&domain=my.domain.de;my.domain2.de&newip=<ipaddr> | |
| if (!isset($_SERVER['PHP_AUTH_USER'])) | |
| { | |
| Header("WWW-Authenticate: Basic realm=\"Configurations-Editor\""); | |
| Header("HTTP/1.0 401 Unauthorized"); |