You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gandi-api-livedns

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gandi-api-livedns

Gandi.net live DNS client Api

0.3.0
pipPyPI
Maintainers
1

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)

Keywords

gandi.net

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts