Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gehaxelt/Bash-INWX-DynDNS
Small DynDNS script for domains registered at inwx.de
https://github.com/gehaxelt/Bash-INWX-DynDNS
Last synced: 15 days ago
JSON representation
Small DynDNS script for domains registered at inwx.de
- Host: GitHub
- URL: https://github.com/gehaxelt/Bash-INWX-DynDNS
- Owner: gehaxelt
- License: agpl-3.0
- Created: 2013-07-07T20:22:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-02-24T09:31:15.000Z (over 2 years ago)
- Last Synced: 2024-07-31T14:09:03.073Z (4 months ago)
- Language: Shell
- Size: 252 KB
- Stars: 57
- Watchers: 9
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
INWX DynDNS Script
=================This is a small bash script, which works as a DynDNS updater. It works only with domains which are registered at [inwx.de](https://inwx.de). It only updates the ip record, if the ip has changed.
## Requirements
This script does not require any additional tools. All tools should be available on a regular linux system:
- curl
- sed## Installation
1. Create a new directory in your home folder. E.g. dyndns.
```
mkdir ~/dyndns
cd ~/dyndns
```2. Clone the files from github
```
git clone [email protected]:gehaxelt/Bash-INWX-DynDNS.git .
```3. Edit the dnsupdate.sh and fill in your login credentials.
```
nano dnsupdate.sh
```4. Get the wished dns entry ID from the inwx website and set it in the script. See below how to get the ID.
When you not have an ID (like IPv6) than use ```DNSIDsv6=()```, an empty array. When you have one ID (like 7654321), use ```DNSIDsv6=("7654321")``` and if you have multiple IDs use ```DNSIDsv6=("7654321" "8901234")```, same usage for IPv4.
5. If desired, enter at ```UPDATEURLv4=""``` the URL from which the IPv4 address should be retrieved, same for IPv6.
6. Edit your crontab. For a 5-minutes update use: ```*/5 * * * * cd /home/$USER/dyndns && bash dnsupdate.sh```
```
crontab -e
```## How to obtain the DNS entry ID?
First, login to the [inwx](https://inwx.de) website. Navigate to "Nameserver" section:
![Inwx's nameserver section](./screenshots/inwx-1.png)
Then open the DNS entries for your domain and right-click on the entry you'd like to dynamically update. Choose the "inspect element" menue entry.
![DNS entries for a domain](./screenshots/inwx-2.png)
Now you should see the developer tools and a `
`-element. The number in the `id`-attribute's value after `record_div_` is the wanted number.![DNS entry's ID](./screenshots/inwx-3.png)
Copy this ID (here: 206895961) into your script.
Alternatively you can use the [INWX API](https://www.inwx.de/de/help/apidoc/f/ch02s09.html#nameserver.info) to obtain the record id.