Gandi.net live DNS client Api
Project description
Gandi.net live DNS API Client Python Library
Easily search for trips!
Installation
Works on 3.x python.
pip install gandi-api-livedns
Usage
from gandi_api_livedns import GandiApiLiveDNS
# initialize API
gandiApiLiveDNS = GandiApiLiveDNS(api_key="__your_api_key_here__")
# set rrname and domain
gandiApiLiveDNS.rrname = 'dummy'
gandiApiLiveDNS.domain = 'mydomain.com'
# get real ip
RealIP = gandiApiLiveDNS.getRealIP()
pprint.pprint(RealIP)
# get registered dns record
DNSRecord = gandiApiLiveDNS.getDNSRecord()
pprint.pprint(DNSRecord)
# update dns record with detected ip
updateDNSRecord = gandiApiLiveDNS.updateDNSRecord()
pprint.pprint(updateDNSRecord)
Project details
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
Close
Hashes for gandi_api_livedns-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b216ff5e13792d30ab0562a2f2f3afbb7ea13718d152eeab8e79fcd30be6898d |
|
MD5 | 549398ffbf4b1626ca8978c9a41a7650 |
|
BLAKE2b-256 | 82e5afa16171ab31fa15f6f670e7bf4d40e2500f7e306a5d1e9f9fcfb0e13aec |