commit
c38db655ff
14
README.md
14
README.md
@ -1,16 +1,16 @@
|
|||||||
# Nameserver update for INWX (nsupdate)
|
# Nameserver update for INWX (nsupdate)
|
||||||
|
|
||||||
Update nameserver entries at inwx with the current WAN IP (DynDNS)
|
This shell script implements [dynamic DNS](https://en.wikipedia.org/wiki/Dynamic_DNS) using the [inwx](https://www.inwx.de/) API, i.e., it updates nameserver entries with your current WAN IPv4 and IPv6 addresses.
|
||||||
|
|
||||||
nsupdate is a shell script that uses curl and the inwx API to update nameserver entries at INWX with the current WAN IP. It supports IPv4 and IPv6.
|
|
||||||
|
|
||||||
Place your config files in the _nsupdate.d_ folder.
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
In order to run you need to have _curl_ and _awk_ installed, as well as _drill_ or _nslookup_.
|
In order to run you need to have _curl_ and _awk_ installed, as well as _drill_ or _nslookup_.
|
||||||
|
|
||||||
At least one config file needs to exist ending with _.config_. A "sample.config.dist" is provided.
|
## Installation
|
||||||
|
|
||||||
|
Simply download the `master.zip` and extract it, e.g., using `wget` and `7z x master.zip`.
|
||||||
|
|
||||||
|
Place your config files in the `nsupdate.d` folder. A `sample.config.dist` is provided. At least one config file needs to exist, ending with `.config.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
@ -31,7 +31,6 @@ At least one config file needs to exist ending with _.config_. A "sample.config.
|
|||||||
- Added checks for existing config file
|
- Added checks for existing config file
|
||||||
- Added requirements to README.md
|
- Added requirements to README.md
|
||||||
|
|
||||||
|
|
||||||
**2014-02-21**
|
**2014-02-21**
|
||||||
|
|
||||||
- Added support for IPv6
|
- Added support for IPv6
|
||||||
@ -47,7 +46,6 @@ At least one config file needs to exist ending with _.config_. A "sample.config.
|
|||||||
|
|
||||||
- Config files are sourced relative to the script folder now
|
- Config files are sourced relative to the script folder now
|
||||||
|
|
||||||
|
|
||||||
**2013-07-12**
|
**2013-07-12**
|
||||||
|
|
||||||
- First commit
|
- First commit
|
||||||
|
@ -1,25 +1,29 @@
|
|||||||
# nsupdate.config
|
# nsupdate.config
|
||||||
|
|
||||||
# from which site should we get your wan ip?
|
# Log file name.
|
||||||
|
LOG="$0.log"
|
||||||
|
|
||||||
|
# From which site should we get your WAN IP?
|
||||||
IP_CHECK_SITE="https://ip.dblx.io"
|
IP_CHECK_SITE="https://ip.dblx.io"
|
||||||
|
|
||||||
# use drill instead of nslookup for hostname lookup
|
# Use drill instead of nslookup for hostname lookup.
|
||||||
USE_DRILL="YES"
|
USE_DRILL="NO"
|
||||||
|
|
||||||
# Use IPv6 connection
|
# Use IPv6 connection.
|
||||||
IPV6="NO"
|
IPV6="NO"
|
||||||
|
|
||||||
# Update an MX record
|
# Update an MX record.
|
||||||
MX="NO"
|
MX="NO"
|
||||||
|
|
||||||
# Suppress all messages
|
# Suppress all messages.
|
||||||
SILENT=NO
|
SILENT="NO"
|
||||||
|
|
||||||
# Login credentials for the inwx admin interface
|
# Login credentials for the inwx admin interface
|
||||||
INWX_USER="USERNAME"
|
INWX_USER="USERNAME"
|
||||||
INWX_PASS='PASSWORD'
|
INWX_PASS="PASSWORD"
|
||||||
|
|
||||||
# The hostname that you want to update and it's ID from the inwx interface
|
# The hostname that you want to update and it's ID from the inwx interface.
|
||||||
# You get the ID when you edit the given nameserver entry and hover the save button.
|
# Note: You can get the domain ID while editing the given nameserver entry by
|
||||||
|
# inspecting the target URL of the save button.
|
||||||
DOMAIN="DOMAIN"
|
DOMAIN="DOMAIN"
|
||||||
INWX_DOMAIN_ID="123456789"
|
INWX_DOMAIN_ID="123456789"
|
||||||
|
@ -38,7 +38,7 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
|
|||||||
for f in $(dirname $0)/nsupdate.d/*.config
|
for f in $(dirname $0)/nsupdate.d/*.config
|
||||||
do
|
do
|
||||||
if [[ "$SILENT" == "NO" ]]; then
|
if [[ "$SILENT" == "NO" ]]; then
|
||||||
echo "Starting nameserver update with config file $f"
|
echo "Starting nameserver update with config file $f ($LOG)"
|
||||||
fi
|
fi
|
||||||
## Set record type to IPv4
|
## Set record type to IPv4
|
||||||
TYPE=A
|
TYPE=A
|
||||||
|
Loading…
x
Reference in New Issue
Block a user