Zilore DNS API Wrapper
Project description
python-zilore
Zilore DNS API Python Wrapper. Currently it supports the following functionalities:
Installaion
The easiest way to install python-zilore
and get updates is by using pip
$ pip install python-zilore
Test installation
You can test your install by using following steps:
-
Log into Zilore DNS management console via Browser
-
Get your own API key in
Setting
page -
Test if your API key is working with the following Python code
import ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.test_login() print(result)
-
Once you see
True
on console, you're all set and ready to rock 'n' roll.
Usage
It's simple to use the library to interact witgh Zilore DNS.
-
Creating a
doamin
calledexample.com
import ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.add_domain('example.com') print(result)
-
Creating an A record called
test.example.com
withTTL = 600 seconds
and point it to10.0.0.1
import ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.add_record('example.com', 'A', 600,'test', '10.0.0.1') print(result)
-
Creating a CNAME record called
cname.example.com
withTTL = 300 seconds
and point it towww.google.com
import ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.add_record('example.com', 'CNAME', 300,'cname', 'www.google.com') print(result)
-
Changing A record
test.example.com
value. Set TTL to 3600 and re-pointing to192.168.1.1
import ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.update_record('csie.io', RECORD_ID, 'A', 3600, 'test', '192.168.1.1') print(result)
Current supported API
Unfortunately, I can only afford for using Personal Plan. Hence, I'm able to implement and test some interesting features such as Geo Records
.
-
DOMAINS
- list_domains
- list_tlds
- list_nameservers
- list_statistics
- add_domain
- delete_domain
-
RECORDS
- list_records
- list_valid_record_ttl
- add_record
- update_record
- update_record_status
- delete_record
-
SNAPSHOTS
- list_snapshots
- list_snapshots_records
- restore_snapshot
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_zilore-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aed407cfc840ceb6dbd888f97c9b2e6fd70d0713d385c31864a9de09ebcd12af |
|
MD5 | 0e3376b9250334ae3ffd724737048613 |
|
BLAKE2b-256 | 20419193b4f0df659c53916d2752deef323a09ef3980dffd300d9b6ce203bbf7 |