Giter Club home page Giter Club logo

netlify-dns-zone-file's Introduction

Netlify DNS Zone File Generator

Generate a zone file from your Netlify DNS records.

Intended use case: to transfer DNS records from Netlify to Cloudflare (which supports importing a zone file).

How does it work: Netlify does not provide an option to export records to a zone file, but it does provide an API that lists them. This tool uses the data from this API and creates a zone file out of it.

Usage

  1. Create a Netlify Personal Access Token.

Now, you can either Run on Replit or run it locally on your system:

Run on Replit

  1. Open the Repl and click on the play button to run it once.
  2. Export the netlify token as an environment variable:
    export NETLIFY_TOKEN=<your token here>
  3. Run the tool again. The output will contain the names of the .zone files that were generated.
    ./main

Run locally

  1. Clone this repository:
    git clone https://github.com/Samyak2/netlify-dns-zone-file.git
  2. Export the netlify token as an environment variable:
    export NETLIFY_TOKEN=<your token here>
  3. Run the tool. The output will contain the names of the .zone files that were generated.
    go run .

Troubleshooting

The tool has only been tested with one domain - when transferring it from Netlify to Cloudflare. The record types that it has been confirmed to handle include A, CNAME, NETLIFY (ignored), MX and TXT.

If you notice errors when importing the generated zone file, please open an issue to report them.

Misc

License

MIT

References

netlify-dns-zone-file's People

Contributors

samyak2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.