It provides a command line interface to manage DNS records of a domain hosted on Netlify.
Project description
Netlify DNS Manager
The netlify-dns-manager
is a command-line tool designed to manage DNS records for domains hosted on Netlify. It allows users to either import DNS records from a local zone file into Netlify or export Netlify DNS records to a local zone file.
Features
- Import DNS Records: Upload DNS records from a local DNS zone file to Netlify.
- Export DNS Records: Save DNS records from Netlify to a local zone file.
Installation
To install netlify-dns-manager
, you need Python 3.6 or higher. You can install this package using pip:
pip install netlify-dns-manager
Usage
Command Line Interface
netlify-dns-manager
can be run from the command line with several options.
Importing DNS Records
To import DNS records from a zone file to Netlify, use the following command:
netlify-dns-manage import <token> -zp <path_to_zone_file> -d <domain_name>
<token>
: Your Netlify access token for authentication.<path_to_zone_file>
: The path to your local DNS zone file.<domain_name>
: The domain name for which the DNS records will be managed.
Exporting DNS Records
To export DNS records from Netlify to a local zone file, use the following command:
netlify-dns-manage export <token> -d <domain_name>
<token>
: Your Netlify access token for authentication.<domain_name>
: The domain name for which the DNS records will be managed.
Parameters
execution_type
: Specify'import'
to upload DNS records to Netlify from a zone file, or'export'
to save Netlify DNS records to a local zone file.token
: Netlify access token for authentication.zone_path
: Path to the local DNS zone file (required for import only).domain_name
: Domain name details.
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Support
If you have any questions or encounter any issues, please open an issue on the project's GitHub issue tracker.
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
Built Distribution
File details
Details for the file netlify_dns_manager-0.4.tar.gz
.
File metadata
- Download URL: netlify_dns_manager-0.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7995cf5b26f721694772543c3c2c0ac9079ab9555975802d1ddacab354163128 |
|
MD5 | 2b4c9da09e3dd11e40b017a8be352285 |
|
BLAKE2b-256 | 8ea8025ecf251cac5d2d7e4643c752d6d41c564b1e056a8f4b54cf4977407134 |
File details
Details for the file netlify_dns_manager-0.4-py3-none-any.whl
.
File metadata
- Download URL: netlify_dns_manager-0.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53eaca01ec95f345a5bfa9bb3c8c3e073df3fb3885614fc7f2208d79e070736a |
|
MD5 | dfa5d767b6f1e50432a65b6b382c4d82 |
|
BLAKE2b-256 | ac21e0251366968c3f2147e5b7b2fee592685633f648888e12cad5b1e01f3461 |