OnApp DNS Driver Documentation¶
OnApp Cloud integrates its fully redundant DNS network into the OnApp Control Panel, so you can manage DNS for your own domains, and your customers’ domains. Its Anycast DNS service is hosted at datacenters around the world, and it’s free of charge for customers running the full version of OnApp Cloud, with CDN enabled. Get fast, fully redundant DNS for free!
Instantiating the driver¶
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver username = 'your account username' password = 'your account password' host = 'onapp.test' cls = get_driver(Provider.ONAPP) driver = cls(key=username, secret=password, host=host)
API Docs¶
- class
libcloud.dns.drivers.onapp.
OnAppDNSDriver(key, secret=None, secure=True, host=None, port=None, **kwargs)[source]¶
create_record(name, zone, type, data, extra=None)[source]¶
Create a new record.
Used only for A and AAAA record types. :type data:
str
For more info, please see:
create_zone(domain, type='master', ttl=None, extra=None)[source]¶
Create a new zone.
don’t want to auto populate with existing DNS records). (optional) :type extra:
dict
For more info, please see:
delete_record(record)[source]¶
Delete a record.
For more info, please see:
delete_zone(zone)[source]¶
Delete a zone.
Note: This will also delete all the records belonging to this zone.
export_zone_to_bind_zone_file(zone, file_path)¶
Export Zone object to the BIND compatible format and write result to a file.
update_record(record, name, type, data, extra=None)[source]¶
Update an existing record.
Used only for A and AAAA record types. :type data:
str
For more info, please see: