{ "info": { "author": "Quantum", "author_email": "quantum@dmoj.ca", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3" ], "description": "``do-dns-manager`` |pypi|\n=========================\n\nA DNS record manager using DigitalOcean as backend, with its own authentication.\nBest suited when you just need something that changes the DNS, but you don't want it\nto have access to other APIs, for example, APIs that can cost you money.\n\nI find this particularly useful for assigning DNS records in a DHCP lease hook.\nAn example hook is included as ``dnsmasq-hook`` for ``dnsmasq`` users.\n\nInstallation\n------------\n\n::\n\n pip install do-dns-manager\n\nConfiguration\n-------------\n\nCreate `htpasswd.txt` somewhere containing lines of username and password pairs\nseparated by ``:``, for example:\n\n::\n\n spam:password\n ham:hunter2\n\nWe will call this file ``$HTPASSWD``.\n\nRun the DNS manager as follows:\n\n::\n\n DIGITAL_OCEAN_API_KEY='(api key)' do-dns-manager --domain=example.com --keyfile=$HTPASSWD --port=8888 --address=127.0.0.1\n\nChange ``(api key)``, ``example.com``, ``$HTPASSWD``, ``8888`` and ``127.0.0.1``\nto fit your situation.\n\nWe will use ``curl`` examples:\n\n::\n\n # Add A record for spam.example.com\n curl -u 'spam:password' http://127.0.0.1:8888 -d @- <