Skip to content

shell script for updating DNS entries via InterNetworkX’ XMLRPC API (dynamic DNS)

License

Notifications You must be signed in to change notification settings

kaimi/inwx-dns-updater

Repository files navigation

InternNetworkX DNS updater

Shell script for updating DNS entries via InterNetworkX’ XMLRPC API (dynamic DNS). Based on http://kromonos.net/server/die-neue-inwx-api.html.

Basically, it compares your current WAN address to a given FQDN DNS entry. If they differ, it calls inwx’ XMLRPC API and updates all entries specified in its config file.

Requirements

  • bash
  • curl
  • dig

config file variables

hostname
FQDN to test the WAN address against.
entity_id
Entity IDs of the DNS entries to modify.
username
Your username.
password
Your password.
xmlfile
(optional) XML template used for POSTing the data to the API.
site
(optional) Web site to check for your WAN IP. Must return the IP in the response body, _not_ through fancy javasrcipt.

The entity ID can be determined by editing a DNS entry and mousing over the „save“ butten. It’s in the URL (see image):

determining the entity ID

Usage

Copy nsupdate.conf.sample to nsupdate.conf and fill in your details. Then run bash inwx-dns-updater.sh. You can also copy the config file name to somewhere else and supply it via the -c swtich.

Contributing

I am using nvie’s git branching model. To contribute you should follow these steps:

  1. Check if your proposed change is already implemented in the develop branch
  2. Fork the repository on Github
  3. Create a named feature branch (like feature-x)
  4. Write your change
  5. Submit a Pull Request against the develop branch using Github

License and Authors

Authors: ka’imi [email protected]

About

shell script for updating DNS entries via InterNetworkX’ XMLRPC API (dynamic DNS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages