Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

JonasGroeger/inwx.de-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

Note: This repository is no longer maintained. Please use ddns-inwx which provides the same functionality but does not require to fiddle with record IDs).

inwx.de-ddns

This script updates your public IPv4 / IPv6 address at inwx.de using their API. It is intended to be run on a Synology NAS but you can run it on any other device.

Written with inspiration from gehaxelt/Bash-INWX-DynDNS

Features

  • Only updates your IP if it changed
  • Asks a pool of public IP address APIs
  • Good error handling
  • Timestamped logs
  • Silent mode
  • shellcheck reports no errors or warnings

Requirements

  • bash
  • curl
  • sed
  • grep

Installation

cd /root/
git clone git@github.com:JonasGroeger/inwx.de-ddns.git
cd inwx.de-ddns

Configuration

Enter your username, password and both your record IDs in there. You can get the record ids like this:

  • Go to https://www.inwx.de/domainlist
  • Click the gear icon on the right and select "DNS records".
  • Click Add DNS entry, create two records and click Save:
nas.domain.com A    127.0.0.1 3600
nas.domain.com AAAA ::1       3600
  • Find the IDs in the source code of the website. You can also use the element picker of Chrome / Firefox / etc. Its usually something like `record_div_XXXXXXXX". Take only the XXXXXXXX part.

Then, enter the IDs as well as your credentials in the dnsupdate script:

cd /root/inwx.de-ddns/
vim dnsupdate

In the DSM you can create a scheduled task that runs this script every X minutes:

  • Scheduled Tasks (calendar icon)
  • Create -> Planned Task -> User defined task
  • Name it somehow and make sure the user is root. Make sure its activated.
  • Run it as often as you want and in the Execute command area enter the following:
cd /root/inwx.de-ddns/ && bash dnsupdate

There you go. If you have questions, please create an issue.

About

Updates your IPv4/IPv6 address on inwx.de.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages