Python script for hetzner DNS robot



Hetzner has a webinterface to manage DNS zonefiles. Since their API does not support the management of zonefiles I decided to write a small python script that does the job ((There actually is a perl script that claims to do the same but it has the (long expired) "session id" hard coded I think.)). You can download it on github (use it at your own risk and read the code if you want to be sure). Usage is as follows
mkdir zonefiles
python dns.py download your-username your-password
now you can find all zonefiles in the directory you just created. Edit them as you like and then call
python dns.py update your-username your-password

Leave a Reply

Your email address will not be published. Required fields are marked *