Skip to main content

Just a simple wrapper around the Dynect REST API. There are three important API functions.

getRecords (hostName=”foo.mydomain.com”)

Gets all records associated with foo.mydomain.com

addRecord (data=”1.2.3.4”, hostName=”bar.mydomain.com”, type=”A”, TTL=3600)

Adds a new DNS A Record for bar.mydomain.com of 1.2.3.4

deleteRecord (data=”1.2.3.4”, hostaName=”bar.mydomain.com”, type=”A”)

Deleted the 1.2.3.4 A record from bar.mydomain.com

>>> import dynect_client
>>> client = dynect_client.DynectDNSClient("mycustomername", "myusername", "mypassword", "mydomain.com")
>>> client.getRecords("foo.mydomain.com")
[{u'status': u'success', u'job_id': 60030085, u'msgs': [{u'INFO': u'get: Found the record', u'SOURCE': u'API-B', u'ERR_CD': None, u'LVL': u'INFO'}], 'value': u'8.8.8.8', 'record': u'foo.mydomain.com', u'data': {u'zone': u'mydomain.com', u'ttl': 600, u'fqdn': u'foo.mydomain.com', u'record_type': u'A', u'rdata': {u'address': u'8.8.8.8'}, u'record_id': 21115048}}, {u'status': u'success', u'job_id': 60030087, u'msgs': [{u'INFO': u'get: Found the record', u'SOURCE': u'API-B', u'ERR_CD': None, u'LVL': u'INFO'}], 'value': u'8.8.4.4', 'record': u'foo.mydomain.com', u'data': {u'zone': u'mydomain.com', u'ttl': 600, u'fqdn': u'foo.mydomain.com', u'record_type': u'A', u'rdata': {u'address': u'8.8.4.4'}, u'record_id': 21115118}}]

Metadata

Release files for dynect-client 0.2.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynect-client 0.2.15
File Size Uploaded
dynect-client-0.2.15.tar.gz 2.6 kB Details

Release files / dynect-client-0.2.15.tar.gz

Download URL dynect-client-0.2.15.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e181f4285e0a91b905432a0fd8ed8296feaec25c8be2cdb156fb569786e76022
BLAKE2b-256 checksum
How to use checksums
10817c342e186222450865c1fd657dbc7c4140bb85dd84dc1449735eb0395ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.15 This release

1 release file

0.2.14

1 release file

0.2.13

1 release file

0.2.12

1 release file

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page