Small tool created for management of hetzner dns service from commandline
Project description
hrdns is shortcut from h(etzner)r(obot)dns. I chosen shorter version because of possible license/trademark issues.
Hetzner.de provides great hosting services in western europe. As their client, I wanted to automate some
parts of our(me & my current company) infrastracture.
This tool covers dns-management in Hetzner's Robot panel.
Installation
============
You need access to pstats module from python's standard library. On ubuntu it
can be installed by following command:
sudo apt-get installl python-profiler
Then you can install hrdns by typing:
easy_install hrdns
Examples of commandline usage
=============================
List of maintaned domains:
hrobot_dns.py list -u<user> -p<password>
Add new domain:
hrobot_dns.py add -u<user> -p<password> -d domain.com -i 8.8.8.8
Delete domain:
hrobot_dns.py delete -u<user> -p<password> -d domain.com
Dump dns records:
hrobot_dns.py show -u<user> -p<password> -d domain.com
Updating dns recods (from file):
hrobot_dns.py update -u<user> -p<password> -d domain.com -f dnsrecords.txt
== Storing username and password in safe way ==
There 3 ways to pass username/password to script:
1. Passing it through params which is unsafe.
2. Environment variables HRDNS_USER, HRDNS_PASSWORD like this:
export HRDNS_USER=<user>
export HRDNS_PASSWORD=<password>
hrobot_dns.py list
3. By creating file ~/.hrdnsrc with source like this:
[hrdns]
user=<user>
password=<password>
FAQ
===
Q: I've deleted domain but it's still in `hrobot_dns.py list`!
A: It's caused by delay of Hetzner's panel. I didn't find better solution than just wait.
License notes
=============
If you aren't monkey, horse, goat or any other extraterrestrial lifeform - use X11/BSD.
I'm not affiliated with the hetzner.de as a employee and i'm not representing them in any way.
Use this library/tool at your own risk. Don't be evil.
Hetzner.de provides great hosting services in western europe. As their client, I wanted to automate some
parts of our(me & my current company) infrastracture.
This tool covers dns-management in Hetzner's Robot panel.
Installation
============
You need access to pstats module from python's standard library. On ubuntu it
can be installed by following command:
sudo apt-get installl python-profiler
Then you can install hrdns by typing:
easy_install hrdns
Examples of commandline usage
=============================
List of maintaned domains:
hrobot_dns.py list -u<user> -p<password>
Add new domain:
hrobot_dns.py add -u<user> -p<password> -d domain.com -i 8.8.8.8
Delete domain:
hrobot_dns.py delete -u<user> -p<password> -d domain.com
Dump dns records:
hrobot_dns.py show -u<user> -p<password> -d domain.com
Updating dns recods (from file):
hrobot_dns.py update -u<user> -p<password> -d domain.com -f dnsrecords.txt
== Storing username and password in safe way ==
There 3 ways to pass username/password to script:
1. Passing it through params which is unsafe.
2. Environment variables HRDNS_USER, HRDNS_PASSWORD like this:
export HRDNS_USER=<user>
export HRDNS_PASSWORD=<password>
hrobot_dns.py list
3. By creating file ~/.hrdnsrc with source like this:
[hrdns]
user=<user>
password=<password>
FAQ
===
Q: I've deleted domain but it's still in `hrobot_dns.py list`!
A: It's caused by delay of Hetzner's panel. I didn't find better solution than just wait.
License notes
=============
If you aren't monkey, horse, goat or any other extraterrestrial lifeform - use X11/BSD.
I'm not affiliated with the hetzner.de as a employee and i'm not representing them in any way.
Use this library/tool at your own risk. Don't be evil.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hrdns-dev.tar.gz
(4.4 kB
view details)
File details
Details for the file hrdns-dev.tar.gz.
File metadata
- Download URL: hrdns-dev.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c978191a4df3feb3c2cec9624881c3c84b173734edfd631ef2cf6103632caa5e
|
|
| MD5 |
15106d65290d776754591b83bfd3a499
|
|
| BLAKE2b-256 |
ad5c08db976f5b2db64b334a919c6f7bc1c8ce7dec0f9da6940de45720f7df98
|