iijdns

python library(API wrapper) for IIJ DNS service


Keywords
iij, dns
License
MIT
Install
pip install iijdns==0.0.2

Documentation

python library(API wrapper) for IIJ DNS service

python library which can easily manage IIJ DNS Service API.

Note

required

  • python 2.7+
  • pip
  • urllib3
  • PyYAML

install

  1. install by pip
# pip install iijdns

Example

ACCESS_KEY = 'XXXXXXX'
SECRET_KEY = 'YYYYYYY'
SERVICE_CODE = 'doZZZZZZZ'
from iijdns.dns import initialize, get_zones, get_records
initialize(ACCESS_KEY, SECRET_KEY, SERVICE_CODE)
# get all zones by array of zone( dict parsed from json) .
json_zones = get_zones()
# get record in specific zone.
json_records = get_records(r'www.example.com')