mirror of
https://github.com/EV21/dynb.git
synced 2025-12-26 16:39:32 +01:00
Compare commits
6 Commits
0.3.2
...
11fccf2f0e
| Author | SHA1 | Date | |
|---|---|---|---|
|
11fccf2f0e
|
|||
|
75715cb0a8
|
|||
|
6313ee4347
|
|||
|
f37230401f
|
|||
|
d6c98c04ad
|
|||
|
64a5a76b6d
|
31
CHANGELOG.md
31
CHANGELOG.md
@@ -1,6 +1,37 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
## 0.3.3 (2022-06-07)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* Wrong parameter name for DuckDNS. [Eduard Veit]
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
* 📝 add comments to docker-compose.yml example. [Eduard Veit]
|
||||||
|
|
||||||
|
|
||||||
|
## 0.3.2 (2022-05-26)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* ✨ add tzdata to Dockerfile for timezone config. [Eduard Veit]
|
||||||
|
|
||||||
|
You can now set your timezone with the environment variable
|
||||||
|
`TZ="Europe/Berlin"`
|
||||||
|
|
||||||
|
|
||||||
|
## 0.3.1 (2022-05-26)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
* 🐛 curl/libcurl doesn't support dns-server option. [Eduard Veit]
|
||||||
|
|
||||||
|
the latest alpine we are using for the docker image
|
||||||
|
does also drops the support for that option like debian/ubuntu/etc
|
||||||
|
|
||||||
|
|
||||||
## 0.3.0 (2022-05-26)
|
## 0.3.0 (2022-05-26)
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -79,7 +79,7 @@ DYNB_SERVICE_PROVIDER=inwx
|
|||||||
## update method options: domrobot, dyndns
|
## update method options: domrobot, dyndns
|
||||||
DYNB_UPDATE_METHOD=domrobot
|
DYNB_UPDATE_METHOD=domrobot
|
||||||
|
|
||||||
## ip mode could be either: 4, 6 or dual for dualstack
|
## ip mode could be either: 4, 6 or 64 for dualstack
|
||||||
DYNB_IP_MODE=64
|
DYNB_IP_MODE=64
|
||||||
|
|
||||||
## If you are using the DomRobot RPC-API enter your credentials for the web interface login here
|
## If you are using the DomRobot RPC-API enter your credentials for the web interface login here
|
||||||
@@ -155,15 +155,25 @@ services:
|
|||||||
image: ev21/dynb
|
image: ev21/dynb
|
||||||
container_name: dynb
|
container_name: dynb
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
environment:
|
environment:
|
||||||
- DYNB_DYN_DOMAIN=dyndns.example.com
|
- DYNB_DYN_DOMAIN=dyndns.example.com
|
||||||
|
# Providers: deSec, duckDNS, dynv6, inwx
|
||||||
- DYNB_SERVICE_PROVIDER=desec
|
- DYNB_SERVICE_PROVIDER=desec
|
||||||
|
# Possible update methods are: dyndns, domrobot
|
||||||
- DYNB_UPDATE_METHOD=dyndns
|
- DYNB_UPDATE_METHOD=dyndns
|
||||||
|
# IP modes: 4 (IPv4 only), 6 (IPv6 only), 64 both
|
||||||
- DYNB_IP_MODE=64
|
- DYNB_IP_MODE=64
|
||||||
|
# If your provider uses tokens use DYNB_TOKEN instead of DYNB_USERNAME and DYNB_PASSWORD
|
||||||
- DYNB_USERNAME=User42
|
- DYNB_USERNAME=User42
|
||||||
- DYNB_PASSWORD=SuperSecretPassword
|
- DYNB_PASSWORD=SuperSecretPassword
|
||||||
- DYNB_INTERVAL=60
|
# The interval in seconds is the time the script waits before executing it again
|
||||||
|
- DYNB_INTERVAL=300
|
||||||
|
# TZ: Timezone setting for correct log time
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
|
# TERM: For colorful console output (attached mode)
|
||||||
|
- TERM=xterm-256color
|
||||||
```
|
```
|
||||||
|
|
||||||
## environment variables
|
## environment variables
|
||||||
|
|||||||
6
dynb.sh
6
dynb.sh
@@ -66,7 +66,7 @@ _response=
|
|||||||
_statusHostname=
|
_statusHostname=
|
||||||
_statusUsername=
|
_statusUsername=
|
||||||
_statusPassword=
|
_statusPassword=
|
||||||
_version=0.3.2
|
_version=0.3.3
|
||||||
_userAgent="DynB/$_version github.com/EV21/dynb"
|
_userAgent="DynB/$_version github.com/EV21/dynb"
|
||||||
_configFile=$HOME/.local/share/dynb/.env
|
_configFile=$HOME/.local/share/dynb/.env
|
||||||
_statusFile=/tmp/dynb.status
|
_statusFile=/tmp/dynb.status
|
||||||
@@ -284,7 +284,7 @@ function dynupdate
|
|||||||
;;
|
;;
|
||||||
DuckDNS* | duckdns*)
|
DuckDNS* | duckdns*)
|
||||||
dyndns_update_url="${DUCKDNS_DYNDNS_UPDATE_URL}"
|
dyndns_update_url="${DUCKDNS_DYNDNS_UPDATE_URL}"
|
||||||
myip_str=ipv4
|
myip_str=ip
|
||||||
myipv6_str=ipv6
|
myipv6_str=ipv6
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@@ -523,7 +523,7 @@ function ipHasChanged
|
|||||||
dns_ip=$(echo "$dig_response" | head -n 1)
|
dns_ip=$(echo "$dig_response" | head -n 1)
|
||||||
fi
|
fi
|
||||||
_new_IPv6=$remote_ip
|
_new_IPv6=$remote_ip
|
||||||
debugMessage "IPv6 from remote IP check server: $_new_IPv6, IPv4 from DNS: $dns_ip"
|
debugMessage "IPv6 from remote IP check server: $_new_IPv6, IPv6 from DNS: $dns_ip"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user