taeram / dizzy

A Python wrapper for the DNS Made Easy v2.0 API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dizzy

Dizzy is a wrapper for the DNS Made Easy API in Python.

Requirements

You'll need the following:

Installation

    # Clone the repo
    git clone https://github.com/taeram/dizzy.git ~/.dizzy
    cd ~/.dizzy/

    # Install the dependencies
    sudo pip install -r requirements.txt

    # Add your DNS Made Easy API credentials to your dizzy environment
    sudo tee ~/.dizzy/.env << EOF
    DNSMADEEASY_API_KEY=api-key-goes-here
    DNSMADEEASY_SECRET_KEY=secret-key-goes-here
    EOF

    # Voila!
    ~/.dizzy/dizzy.py

Usage

Update an A record.

In this example, we're updating www.example.com to point to 127.0.0.1

Request

~/.dizzy/dizzy.py example.com update www 127.0.0.1

Response

www.example.com. 3600 IN A 127.0.0.1

About

A Python wrapper for the DNS Made Easy v2.0 API

License:MIT License


Languages

Language:Python 100.0%