Snap DynDNS Server enables you to set up your own easy and simple Dynamic DNS service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxmehl d7aa10602c
Add information about usage with a FritzBox
1 year ago
.gitignore add gitignore 3 years ago
.htaccess initial commit 3 years ago
LICENSE initial commit 3 years ago Add information about usage with a FritzBox 1 year ago
config.cfg.sample initial commit 3 years ago
index.html initial commit 3 years ago
screen-inwx-id.png initial commit 3 years ago
update.api initial commit 3 years ago
update.php initial commit 3 years ago initial commit 3 years ago
users.db.sample initial commit 3 years ago

Snap DynDNS Server using INWX domains

Snap DynDNS Server enables you to set up your own simple Dynamic DNS service. It requires you to use domains managed by the registrar InterNetworX ( and their API. This server may be simply customised to be able to work with other domain sellers and their specific APIs.

It can set the IP of any existing domain entry, may it be IPv4 or IPv6 (and theoretically all kinds INWX supports). All domains of the clients have to be part of the same INWX account.

The idea of the service is to enable compatibility with as many client devices as possible. So clients only would need to send a GET or POST request to your service which contains their individual user data (which you can create freely) and their desired IP address for their domain.

This server has a client application as counterpart, named Snap DynDNS client. Using the latter, you will be able to retrieve the IP of your computer and send it to this service which in return updates the domain for you.


The installation requires the possibility to execute PHP and Bash files. It also requires curl to be installed. There’s no need for a database to be installed as everything is handled by flat text files.

The code has been tested with PHP 5.5, CentOS 7, and Apache 2.2.15. Please be aware to migrate the .htaccess file if you use other webservers so the sensitive files like config.cfg and users.db are safe.


Clone the git repository to your server and move them to a public web-accessible folder of your choice. Now rename/copy the files config.cfg.sample and users.db.sample to config.cfg and users.db respectively. Open them in an editor and modify the settings so they match your data.


In this file you have to put your username and password. It is needed to login to the API and update the IP of your domain entry.


In this file you can create users which can use your service. Unauthorized requests which do not match any of the content here will not work. Each line matches one existing single domain entry in your INWX account. It is not necessary the DynDNS domain names to be part of the same domain (, they can also be different ones – they just have to be part of the same INWX account (please tell me if you need this to be improved, it shouldn’t be a big deal).

Gather INWX domain ID

Given you own the domain which you can administrate in your INWX account. For each client, you can create a subdomain, in this example and For INWX, each domain has a unique ID. To find out this ID, you will have to use a tool like Firebug or the in-built web inspector tools by Firefox or Chromium. Use the inspect element feature, hover over the subdomain line in your nameserver/DNS settings (where you can define the IPs, currently on, and in the id attribute of the <div>-element you should find a string with around 9 numbers. This number is the domain entry’s ID. Please see the screenshot for how it should look like.

That's how you get the ID of your single domain

Back in users.db, type in the domain name ( and its INWX ID. For username and password, you can freely create one and give to your users. Each request to your service requires the correct domain name, a username and a password. Only if all three match, the IP change request will be executed.


Please feel free to use Snap DynDNS client which is the perfect combination for this server application.

Please note: You cannot define whether it shall be an A, AAAA or whatever record. You would have to do that in the INWX webpanel once, the ID should stay the same.


You can use curl with a POST request:

curl -X POST -d "" ""

You can also use GET requests which is not recommended. The advantage of POST requests is that the request is encrypted via SSL if you use a HTTPS domain. GET requests can be intercepted quite easily which is bad because you send sensitive data. A GET request would look like this

curl -d "" ""

This will send following data to your Snap DynDNS server which is running under the domain in this example:

  • This is the client’s personal DynDNS domain
  • user=myuser: This is the client’s username which you can define freely
  • pass=mypassword: This is the client’s personal password which you can define freely.
  • ip= This is the IP which shall be set to this single domain

AVM FritzBox

In the AVM Fritz!Boxes you can choose a custom DynDNS provider. In order to connect it with your Snap DynDNS server, use following data:

Username: myuser
Password: mypassword

Be sure to not add an URI scheme like https://, the device will throw an error. The IP address is set automatically by the device. Note that you can also set your IPv6 address by using <ip6addr> in the URL.