1. silviu dicu
  2. dnsmadeeasy

Overview

HTTPS SSH

Dnsmadeeasy python bindings

Interact with the api at

http://api.dnsmadeeasy.com/V1.2/

Howto - use as script

First export into your environment(bash/zsh example)

$ export DNS_MADEEASY_KEY=your_key $ export DNS_MADEEASY_SECRET=your_secret

Run the program

Usage: dnsmadeeasy.py [options]

Options:
-h, --help show this help message and exit
--action=ACTION
 Domain(create_domain|read_domain|update_domain|delete_ domain) Records(create_record|delete_record|update_rec ord|read_record)
--domain=DOMAIN
 the domain name: eq. example.com
--record_name=RECORD_NAME
 the record name without the domain eq. mail
--record_type=RECORD_TYPE
 ['A', 'CNAME', 'MX']
--record_data=RECORD_DATA
 the ip address of the record_name (will add add csv ips)
--record_ttl=RECORD_TTL
 the ttl for the record_name - default 1800
--record_location=RECORD_LOCATION
 location of the GTD - DEFAULT if not specified

Howto - use as module

>>> import dnsmadeeasy
>>> import json
>>> r = dnsmadeeasy.Request(DNS_MADEEASY_KEY, DNS_MADEEASY_SECRET)
>>> domain_res = json.loads(r.read_domain('example.com'))
>>> record = json.loads(r.read_record('example.com', '9999')) # 9999 is the record id
>>> all_records = json.loads(r.read_record('example.com'))