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.
- type = 'buddyns'