Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quantum5/do-dns-manager
A DNS record manager using DigitalOcean as backend, useful for assigning DNS records in a DHCP hook.
https://github.com/quantum5/do-dns-manager
Last synced: about 16 hours ago
JSON representation
A DNS record manager using DigitalOcean as backend, useful for assigning DNS records in a DHCP hook.
- Host: GitHub
- URL: https://github.com/quantum5/do-dns-manager
- Owner: quantum5
- License: agpl-3.0
- Created: 2018-01-08T05:56:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T03:57:02.000Z (about 5 years ago)
- Last Synced: 2024-05-01T22:43:36.977Z (6 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
``do-dns-manager`` |pypi|
=========================A DNS record manager using DigitalOcean as backend, with its own authentication.
Best suited when you just need something that changes the DNS, but you don't want it
to have access to other APIs, for example, APIs that can cost you money.I find this particularly useful for assigning DNS records in a DHCP lease hook.
An example hook is included as ``dnsmasq-hook`` for ``dnsmasq`` users.Installation
------------::
pip install do-dns-manager
Configuration
-------------Create `htpasswd.txt` somewhere containing lines of username and password pairs
separated by ``:``, for example:::
spam:password
ham:hunter2We will call this file ``$HTPASSWD``.
Run the DNS manager as follows:
::
DIGITAL_OCEAN_API_KEY='(api key)' do-dns-manager --domain=example.com --keyfile=$HTPASSWD --port=8888 --address=127.0.0.1
Change ``(api key)``, ``example.com``, ``$HTPASSWD``, ``8888`` and ``127.0.0.1``
to fit your situation.We will use ``curl`` examples:
::
# Add A record for spam.example.com
curl -u 'spam:password' http://127.0.0.1:8888 -d @- <