Zilore DNS API Wrapper
Project description
python-zilore
Zilore DNS API Python Wrapper. It was implemented by following Zilore DNS API document.
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
Settingpage -
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
Trueon 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
doamincalledexample.comimport ziloreapi zdns = ziloreapi.Api('YOUR_API_KEY') result = zdns.add_domain('example.com') print(result)
-
Creating an A record called
test.example.comwithTTL = 600 secondsand point it to10.0.0.1import 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.comwithTTL = 300 secondsand point it towww.google.comimport 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.comvalue. Set TTL to 3600 and re-pointing to192.168.1.1import 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
All API are FULL SUPPORTED by python-zilore
-
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
-
GEO RECORDS
- geo_records
- list_geo_records
- add_geo_record
- update_geo_record
-
FAILOVER RECORDS
- failover_records
- list_failover_records
- add_failover_record
- update_failover_record
- delete_failover_record
-
WEB AND MAIL FORWARDING
- list_mf_addresses
- add_mf_address
- update_mf_address
- update_mf_address_status
- delete_mf_address
- list_wf_addresses
- add_wf_address
- update_wf_address
- update_wf_address_status
- delete_wf_address
-
CUSTOM TEMLATES
- list_custom_templates
- create_custom_template
- update_custom_template
- delete_custom_template
- restore_custom_template
- list_custom_templates_records
- add_custom_template_record
- update_custom_template_record
- delete_custom_template_record
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-zilore-0.0.4.tar.gz.
File metadata
- Download URL: python-zilore-0.0.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cfce0dc16466d36dd4485e2021f98c204fb6529f7c02984be999ad98688d631
|
|
| MD5 |
95276bb9c1bcdf53d476ddcc9f562791
|
|
| BLAKE2b-256 |
d4d2f29599a1750c7a594edd2589c8371f1f9c2cb0f1096942ef033f694c63ab
|
File details
Details for the file python_zilore-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: python_zilore-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598f5fc4e357a80c6b6e0b9f76bf0fba1a4c28e1dc285b91720fe55ed1a34dde
|
|
| MD5 |
a8a84f279a4ba7b5ed10a94af56ffd9e
|
|
| BLAKE2b-256 |
ec11c050cddd5896477c08ee2a5edfa4a74fa992b36e00889b60fe09e11a4d98
|