Skip to content

Commit

Permalink
Add LOG to config, clean up some documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
schulzch committed Aug 8, 2016
1 parent fad5cfa commit 7d751c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Nameserver update for INWX (nsupdate)

Update nameserver entries at inwx with the current WAN IP (DynDNS)

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.
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.

## Requirements

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

Expand All @@ -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 requirements to README.md


**2014-02-21**

- Added support for IPv6
Expand All @@ -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


**2013-07-12**

- First commit
Expand Down
24 changes: 14 additions & 10 deletions nsupdate.d/sample.config.dist
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# 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"

# use drill instead of nslookup for hostname lookup
USE_DRILL="YES"
# Use drill instead of nslookup for hostname lookup.
USE_DRILL="NO"

# Use IPv6 connection
# Use IPv6 connection.
IPV6="NO"

# Update an MX record
# Update an MX record.
MX="NO"

# Suppress all messages
SILENT=NO
# Suppress all messages.
SILENT="NO"

# Login credentials for the inwx admin interface
INWX_USER="USERNAME"
INWX_PASS='PASSWORD'
INWX_PASS="PASSWORD"

# 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.
# The hostname that you want to update and it's ID from the inwx interface.
# Note: You can get the domain ID while editing the given nameserver entry by
# inspecting the target URL of the save button.
DOMAIN="DOMAIN"
INWX_DOMAIN_ID="123456789"

0 comments on commit 7d751c4

Please sign in to comment.