https://github.com/sedrubal/dyndns-refresh
small bash-script to refresh your dyn A entry for many providers
https://github.com/sedrubal/dyndns-refresh
cron dns dyndns dyndns-refresh
Last synced: about 1 month ago
JSON representation
small bash-script to refresh your dyn A entry for many providers
- Host: GitHub
- URL: https://github.com/sedrubal/dyndns-refresh
- Owner: sedrubal
- Created: 2014-08-15T00:21:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-30T23:51:15.000Z (about 10 years ago)
- Last Synced: 2025-01-24T08:43:41.724Z (3 months ago)
- Topics: cron, dns, dyndns, dyndns-refresh
- Language: Shell
- Homepage:
- Size: 172 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dyndns-refresh
==============a small bash-script to refresh a `dyn A` entry. Should work for many providers.
features
--------- simple bash-script (you don't have to install a program)
- logging (the response of the provider will be logged)usage
------ clone the repository (for example in your home directory) and make [`dyndns.sh`](dyndns.sh) executeable
```bash
git clone https://github.com/sedrubal/dyndns-refresh.git && cd dyndns-refresh
chmod +x dyndns.sh
```- copy the [`config.cfg.example`](config.cfg.example) to `config.cfg` and edit it. You only have not to provide every variable:
```bash
cp config.cfg.example config.cfg
editor config.cfg
# provide following configs:
# - $url
# - $loggerpath
# - $logfile
```- set file permissions:
```bash
sudo chown -R $USER:$GROUP .
sudo chmod 400 config.cfg
```
- check, if the script works```bash
./dyndns.sh -v
tail $logfile
```- create a crontab (`crontab -e -u $USER`) like this:
```bash
0/15 * * * * /home/$USER/dyndns.sh 2>&1
# │ └─┴─┴─┴─ every hour, day, month, weekday
# └────────── when minute == 15
```functionality
-------------- a crontab will trigger this script (default: every 15 minutes; you can change the interval)
- this scripts uses `curl` to request the update-website of the provider. He will notice your ip.
- the output will be saved as logdependencies
------------- unix based os
- curl
- cron
- logger
- (logrotate)supported providers
-------------------- joker.com
- no-ip.com ?
- ...not implemented yet / todo
--------------------------- (automatic installation and support for crontab)
- check if parameter $1 == "-v" (bash is so complicated)license
-------
![]()
dyndns-refresh by sedrubal
is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.