This commit is contained in:
Michael Clemens 2018-04-29 21:41:42 +02:00
commit 830565bcd7
1 changed files with 3 additions and 1 deletions

View File

@ -70,8 +70,10 @@ Furthermore, add this zone file to your _/var/nsd/etc/nsd.conf_
### Configure and Install nsd-dyndns
* Copy _dyndns.conf-dist_ to _/etc/dyndns.conf_
* _# cp dyndns.conf-dist /etc/dyndns.conf_
* Edit _/etc/dyndns.conf_ to your needs
* Copy _dyndns.sh_ to _/usr/local/bin/dyndns.sh_
* _# cp dyndns.sh /usr/local/bin/dyndns.sh_
* Make the script executable:
* _# chmod u+x /usr/local/bin/dyndns.sh_
* Add _/usr/local/bin/dyndns.sh_ to your crontab
@ -91,7 +93,7 @@ Don't forgert to set your own domain name and to replace the string after "?" wi
When your router gets a new IP and therefore sends an HTTP request to your server, a similar entry should appear in your _/var/www/logs/dyndns.log_:
```
update.axample.com 123.123.123.123 - - [29/Apr/2018:20:48:19 +0200] "GET /update.html?qwertzuiop1234567890 HTTP/1.1" 200 6
update.example.com 123.123.123.123 - - [29/Apr/2018:20:48:19 +0200] "GET /update.html?qwertzuiop1234567890 HTTP/1.1" 200 6
```
When the script is executed e.g. via cron, the following happens: