python library(API wrapper) for IIJ DNS service
python library which can easily manage IIJ DNS Service API.
Note
- currently supports only
required
- python 2.7+
- pip
- urllib3
- PyYAML
install
- 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')