gandi-api-livedns

Gandi.net live DNS client Api


Keywords
gandi, net, api, dns
License
MIT
Install
pip install gandi-api-livedns==0.3.0

Documentation

Gandi.net live DNS API Client Python Library

PyPI version

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)