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.
bash
curl
dig
- 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):
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.
I am using nvie’s git branching model. To contribute you should follow these steps:
- Check if your proposed change is already implemented in the
develop
branch - Fork the repository on Github
- Create a named feature branch (like
feature-x
) - Write your change
- Submit a Pull Request against the
develop
branch using Github
Authors: ka’imi [email protected]