Git Product home page Git Product logo

bash-inwx-dyndns's Introduction

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. 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
  1. Clone the files from github
git clone [email protected]:gehaxelt/Bash-INWX-DynDNS.git .
  1. Edit the dnsupdate.sh and fill in your login credentials.
nano dnsupdate.sh
  1. 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.
  2. If desired, enter at UPDATEURLv4="" the URL from which the IPv4 address should be retrieved, same for IPv6.
  3. 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 website. Navigate to "Nameserver" section:

Inwx's nameserver section

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

Now you should see the developer tools and a <div>-element. The number in the id-attribute's value after record_div_ is the wanted number.

DNS entry's ID

Copy this ID (here: 206895961) into your script.

Alternatively you can use the INWX API to obtain the record id.

bash-inwx-dyndns's People

Contributors

christiankrausse avatar gehaxelt avatar joker234 avatar lukask13 avatar peronia avatar strubbl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.