libcloud.dns.drivers.buddyns module

BuddyNS DNS Driver

class libcloud.dns.drivers.buddyns.BuddyNSDNSDriver(key: str, secret: str | None = None, secure: bool = True, host: str | None = None, port: int | None = None, **kwargs: Any | None)[source]

Bases: DNSDriver

Parameters:
  • key (str) – API key or username to used (required)

  • secret (str) – Secret password to be used (required)

  • secure (bool) – Whether to use HTTPS or HTTP. Note: Some providers only support HTTPS, and it is on by default.

  • host (str) – Override hostname used for connections.

  • port (int) – Override port used for connections.

Returns:

None

connectionCls

alias of BuddyNSDNSConnection

create_zone(domain, type='master', ttl=None, extra=None)[source]
Parameters:
  • domain (str) – Zone domain name (e.g. example.com)

  • type (str) – Zone type (This is not really used. See API docs for extra parameters)

  • ttl (int) – TTL for new records (This is used through the extra param)

  • extra – Extra attributes that are specific to the driver

such as ttl. :type extra: dict

Return type:

Zone

Do not forget to pass the master in extra, extra = {‘master’:’65.55.37.62’} for example.

delete_zone(zone)[source]
Parameters:

zone (Zone) – Zone to be deleted.

Returns:

Boolean

get_zone(zone_id)[source]
Parameters:

zone_id – Zone domain name (e.g. example.com)

Returns:

Zone

list_zones()[source]

Return a list of zones.

Returns:

list of Zone

name: str = 'BuddyNS DNS'
type = 'buddyns'
website: str = 'https://www.buddyns.com'