This module encapsulates Dynect Platform REST API calls.
Also it can be used as a command line tool
- Token authentication and logout
- Keepalive
- A Record listing, creation and deletion
- Zone changes publishing
#!/usr/bin/env python
from dynect import Dynect
from pprint import pprint
dyn = Dynect("customer", "username", "**************")
dyn.keepalive()
pprint(dyn.read_rec_a("domain.tld", "domain.tld"))
This command will print all A records for the domain.tld zone
./dynect.py -c CUSTOMER -u USERNAME -p PASSWORD -z domain.tld -n node.domain.tld -o a -w list
This will produce output like this:
190.161.49.7 (record id: 6493308)
62.148.64.1 (record id: 6495858)
- list -- list all A records for the node in zone
- add A.B.C.D -- add A records for the node
- del A.B.C.D -- delete A records from the node
Add and delete commands finds record id by supplied ip-address.
My email is [email protected]
Details are coming... Maybe...