Skip to main content

A DNS Python Library.

Project description

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.

Installation

The package can be installed using pip:

$ pip install auto-dns

Or if you prefer, you can use Poetry:

$ poetry add auto-dns

Configuration

To configure a DNS provider API key, use the following command:

$ autodns set_api_key <provider> <api_key>

Usage

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>

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

Auto DNS is released under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_dns-0.1.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

auto_dns-0.1.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page