Welcome to Strato DynDNS’s documentation!

DynDNS client written in Python which updates DNS Records for your domains, maximal compatibility with Strato.

Modules

DynDNSClient

class strato_dyndns.clients.dyndns_client.DynDNSClient(provider: str)

Bases: object

Standard DynDNS client for supported providers

analyze_output(output: str) str

Analyzes output from DynDNS server.

init_data(data: dict)

Expects init data needed for provider backend. username, password, domain, ip_addresses

update_record() str

Sends update request to provider and returns update response

exception strato_dyndns.clients.dyndns_client.DynDNSClientConnectException(message: str)

Bases: Exception

Exception class for DynDNS client connection

exception strato_dyndns.clients.dyndns_client.DynDNSClientInitException(message: str)

Bases: Exception

Exception class for DynDNS client initialization

exception strato_dyndns.clients.dyndns_client.DynDNSClientStatusException(message: str)

Bases: Exception

Exception class for DynDNS client result

Backend Modules

StratoClient

class strato_dyndns.clients.strato_client.StratoClient

Bases: object

Client class for Strato DynDNS. For DynDNS operations, DynDNSClient class is encouraged.

INIT: list
UPDATE_URL: str
is_initialized() bool

Returns boolean whether all values in schema has been properly initialized

set_authentication(username: str, password: str) None

Sets username and password for logging in DynDNS server. Username is usually main domain if you are setting up IP update for subdomains.

set_domain(domain: str) None

Sets domain for which the record is to be updated.

set_ip_addresses(ip_addresses: list) None

Sets IP addresses to be updated. Accepts ip_addresses as list.

set_password(password: str) None

Sets password for logging in DynDNS server.

set_username(username: str) None

Sets username for logging in DynDNS server. Username is usually main domain if you are setting up IP update for subdomains.

update_url() str

Returns update path in plain single line string.

class strato_dyndns.clients.strato_client.StratoClientInitData(data)

Bases: object

Provides set of init data for strato client backend.

domain: str
ip_addresses: list
password: str
username: str
exception strato_dyndns.clients.strato_client.StratoClientInitError(message)

Bases: Exception

Exception class for initialization error

class strato_dyndns.clients.strato_client.StratoOutputAnalyzer(output: str)

Bases: object

Analyzes output from Strato DynDNS service.

OUTPUT: str
RESPONSE: str
STATUS: str
analyze() str

NamecheapClient

class strato_dyndns.clients.namecheap_client.NamecheapClient

Bases: object

Client class for Namecheap DynDNS. For DynDNS operations, DynDNSClient class is encouraged.

INIT: list
UPDATE_URL: str
is_initialized() bool

Returns boolean whether all values in schema has been properly initialized

set_authentication(username: str, password: str) None

Sets username and password for logging in DynDNS server. Username is usually main domain if you are setting up IP update for subdomains.

set_domain(domain: str) None

Sets domain for which the record is to be updated.

set_ip_addresses(ip_addresses: str) None

Sets IP addresses to be updated. Accepts ip_addresses as list.

set_password(password: str) None

Sets password for logging in DynDNS server.

set_username(username: str) None

Sets username for logging in DynDNS server. Username is usually main domain if you are setting up IP update for subdomains.

update_url() str

Returns update path in plain single line string.

class strato_dyndns.clients.namecheap_client.NamecheapClientInitData(data)

Bases: object

Provides set of init data for Namecheap client backend.

domain: str
ip_addresses: list
password: str
username: str
exception strato_dyndns.clients.namecheap_client.NamecheapClientInitError(message)

Bases: Exception

Exception class for initialization error

class strato_dyndns.clients.namecheap_client.NamecheapOutputAnalyzer(output: str)

Bases: object

Analyzes output from Namecheap DynDNS service.

RESPONSE: str
STATUS: str
analyze() tuple