Puckdns documentation

codecov githubCI

Description

This API provides access functionality to the free secondary puck DNS service.

Installation or upgrade

pip3 install -U puckdns

Getting started

import puckdns
from puckdns import puckdnsExceptions

# initialise puck dns class
puck = puckdns.API()

# login with your credentials
try:
   puck.login ("<myusername>", "<mypassword>")
except puckdnsExceptions.LoginFailed:
   print ("[FATAL] Login failed. False login credentials.")
else:
   # do something with the API, eg.
   registered_domains = puck.getDomains()
finally:
   # close connection clean
   puck.logout()

API Reference

class puckdns.API

API for working with https://puck.nether.net/dns

addDomain(ip, domain)

Add domain to puck DNS

addDomains(ip, domainsList)

Add multiple domain entries at once

delDomain(domain)

Delete domain from puck DNS

delDomains(domainList)

Delete Multiple Domains

getDomains()

Returns registered domains from puck dns service

get_DNS_Info_TD()

Returns extracted table data from puck dns service

get_IP(domain)

Gets IP address for specific domains from puck dns service

login(username, password)

Login to puck dns service with given username and password

logout()

Logout from puck dns service

setAllIP(ip)

Set same master IP address for all domains registered at puck dns service with this user account

set_IP(domain, ip)

Sets IP address for specific domains from puck dns service

Indices and tables