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 ((<a href="https://github.com/br0ziliy/hetzner-robot-dns">There actually is a perl script that claims to do the same</a> but it has the (long expired) "session id" hard coded I think.)). <a href="https://github.com/larsborn/hetzner-zonefiles/blob/master/dns.py" title="github link to DNS zonefile script">You can download it on github</a> (use it at your own risk and read the code if you want to be sure). <span id="more-2769"></span> Usage is as follows ```bash 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 ```bash python dns.py update your-username your-password ```

Leave a Reply

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