Auto DNS is a Python command line application which automatically updates the DNS records of your domain using various DNS providers.
Supported DNS providers:
- Arvan
- Cloudflare [coming soon]
This library is intended to be used on a system with a dynamic public IP that you want to map to a static domain name.
The package can be installed using pip:
$ pip install auto-dns
Or if you prefer, you can use Poetry:
$ poetry add auto-dns
To configure a DNS provider API key, use the following command:
$ autodns set_api_key <provider> <api_key>
To create a DNS record:
$ autodns create <domain> <record_type> <name> <provider> --ip <ip_address>
To update a DNS record with your current public IP, use the following command:
$ autodns update <domain> <record_type> <name> <provider> --ip <ip_address>
To delete a DNS record:
$ autodns delete <domain> <record_type> <name> <provider>
To get DNS records:
$ autodns get_record <domain> <provider> --record-type <record_type> --name <name>
Contributions are welcome! Please feel free to submit a Pull Request.
Auto DNS is released under the MIT License.