Skip to main content

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

This version

0.4

Download files

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

Source Distribution

netlify_dns_manager-0.4.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

netlify_dns_manager-0.4-py3-none-any.whl (7.9 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