Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b3144a4
Drop Zerigo DNS support
Mar 26, 2025
058ba11
Deprecate DNSimple DNS driver
Mar 27, 2025
3e18f9c
Deprecate RcodeZero DNS driver
Apr 2, 2025
312cfb7
test: Add optional request history to MockHttp
Mar 27, 2025
d33c6c2
dns: buddyns: Add API request checking
Mar 27, 2025
48424a3
dns: cloudflare: Add API request checking
Mar 27, 2025
78072a1
dns: digitalocean: Add API request checking
Mar 27, 2025
3cde093
dns: dnspod: Add API request checking
Mar 27, 2025
6c11347
dns: durabledns: Add API request checking
Mar 27, 2025
2fc6656
dns: gandi: Add API request checking
Mar 27, 2025
ff48923
dns: godaddy: Add API request checking
Mar 27, 2025
73652f7
dns: google: Add API request checking
Mar 27, 2025
4f093b7
dns: liquidweb: Implement test_create_record_success()
Mar 28, 2025
db1c3d1
dns: liquidweb: Add API request checking
Mar 28, 2025
702e6a6
dns: luadns: Add API request checking
Mar 28, 2025
5effe36
dns: nsone: Fix test_get_record_success()
Mar 28, 2025
d09b1f1
dns: nsone: Fix test_list_records_success()
Mar 28, 2025
c7ffa92
dns: Add hostname helpers to Zone class
Mar 29, 2025
71efb13
dns: Add {to,from}_default_id() to DNSDriver class
Apr 2, 2025
2c220f6
dns: nsone: Use locally-relevant zone and record IDs
Apr 1, 2025
0f15ae6
dns: onapp: Add API request checking
Mar 29, 2025
b82e0c3
dns: pointdns: Add API request checking
Mar 29, 2025
e8c2463
dns: rackspace: Add API request checking
Mar 29, 2025
f6c53da
dns: route53: Fix test_update_record() record type
Mar 31, 2025
2b95888
dns: route53: Add API request checking
Mar 31, 2025
1728b9f
dns: worldwidedns: Fix create_zone() reseller suppport
Mar 31, 2025
5ac1214
dns: worldwidedns: Add API request checking
Mar 31, 2025
9256f30
dns: worldwidedns: Fix update_zone() reseller support
Mar 31, 2025
108b37b
dns: worldwidedns: Leverage "slot" ID from Record.id
Mar 31, 2025
02b1fe7
dns: zonomi: Add API request checking
Apr 1, 2025
0bab07d
dns: zonomi: Drop redundant api_key in list_zones()
Apr 1, 2025
5240380
dns: nsone: Add test_get_zone_success()
Apr 1, 2025
1649242
dns: nsone: Add API request checking
Apr 1, 2025
77c91a3
dns: linode: Add API request checking
Apr 2, 2025
19ff080
dns: vultr: Add API request checking
Apr 2, 2025
2caf64e
dns: powerdns: Add API request checking
Apr 2, 2025
e48e8b5
dns: nfsn: Add API request checking
Apr 2, 2025
6cda20d
dns: gandi_live: Add API request checking
Apr 2, 2025
875b214
dns: zonomi: Switch to default local ID format
Apr 2, 2025
4baa0fc
dns: pointdns: Make records agree with zone
Apr 2, 2025
1e6bb53
dns: luadns: Make records agree with zone
Apr 2, 2025
a9ea6f5
dns: Add common code for domain/host naming
Apr 2, 2025
10079ae
dns: google: Leverage {to,from}_default_id()
Apr 2, 2025
95dd1a6
dns: google: Drop FQDN from inputs
Apr 2, 2025
6ae2022
dns: gandi: Leverage {to,from}_default_id()
Apr 3, 2025
7807178
dns: route53: Leverage common code
Apr 3, 2025
b37b97a
dns: gandi_live: Leverage {to,from}_default_id()
Apr 3, 2025
34d96fa
dns: rackspace: Leverage common host naming code
Apr 3, 2025
0988072
Add changelog entry
micafer Nov 20, 2026
97322e8
Merge branch 'trunk' into dns-consistent-api
micafer Nov 20, 2026
59973b9
Remove ZERIGO examples
micafer Nov 20, 2026
1e1f2dc
Fix AuroraDNSDriver
micafer Nov 20, 2026
c8be0d2
Fix from_default_id
micafer Nov 20, 2026
2e57d09
Fix error if extra is None
micafer Nov 20, 2026
3fef6a1
Fix errors
micafer Nov 20, 2026
f061369
merge master
micafer Nov 20, 2026
bff0465
Fix errors in tests
micafer Nov 20, 2026
fbef9d3
Fix Zone.prefix function
micafer Nov 20, 2026
8794ea2
Fix lint
micafer Nov 20, 2026
908dd88
Fix Zone.prefix
micafer Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ Storage
DNS
~~~

- [DNS] Normalize zone and record names consistently across drivers. ``Record.name``
is now relative to its zone, while ``Record.hostname`` and ``Record.fqdn`` expose
the complete hostname without and with a trailing dot, respectively. DNS drivers
accept apex and fully qualified names consistently, with request tests covering
the names sent to providers.
(GITHUB-2065)

[Aaron Sierra - @aaron-sierra]

- [Route53] Fix ``delete_record`` failing with ``RecordDoesNotExistError`` for
records which are part of a multi value record set (e.g. MX). Route53 only
accepts a DELETE changeset which lists every value in the record set, so the
Expand Down
Binary file removed docs/_static/images/provider_logos/zerigo.png
Binary file not shown.
2 changes: 0 additions & 2 deletions docs/dns/_supported_methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Provider list zones list records create zone update zone create record
`Route53 DNS`_ yes yes yes no yes yes yes yes
`Vultr DNS`_ yes yes yes no yes yes yes yes
`World Wide DNS`_ yes yes yes yes yes yes yes yes
`Zerigo DNS`_ yes yes yes yes yes yes yes yes
`Zonomi DNS`_ yes yes yes no yes no yes yes
================= ========== ============ =========== =========== ============= ============= =========== =============

Expand All @@ -52,6 +51,5 @@ Provider list zones list records create zone update zone create record
.. _`Route53 DNS`: http://aws.amazon.com/route53/
.. _`Vultr DNS`: https://www.vultr.com
.. _`World Wide DNS`: https://www.worldwidedns.net/
.. _`Zerigo DNS`: http://www.zerigo.com/
.. _`Zonomi DNS`: https://zonomi.com
.. _`AuroraDNS`: https://www.pcextreme.nl/en/aurora/dns
2 changes: 0 additions & 2 deletions docs/dns/_supported_providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Provider Documentation Provider Constant Su
`Route53 DNS`_ ROUTE53 single region driver :mod:`libcloud.dns.drivers.route53` :class:`Route53DNSDriver`
`Vultr DNS`_ :doc:`Click </dns/drivers/vultr>` VULTR single region driver :mod:`libcloud.dns.drivers.vultr` :class:`VultrDNSDriver`
`World Wide DNS`_ :doc:`Click </dns/drivers/worldwidedns>` WORLDWIDEDNS single region driver :mod:`libcloud.dns.drivers.worldwidedns` :class:`WorldWideDNSDriver`
`Zerigo DNS`_ ZERIGO single region driver :mod:`libcloud.dns.drivers.zerigo` :class:`ZerigoDNSDriver`
`Zonomi DNS`_ :doc:`Click </dns/drivers/zonomi>` ZONOMI single region driver :mod:`libcloud.dns.drivers.zonomi` :class:`ZonomiDNSDriver`
================= ========================================= ================= ==================== ======================================== ==============================

Expand All @@ -52,6 +51,5 @@ Provider Documentation Provider Constant Su
.. _`Route53 DNS`: http://aws.amazon.com/route53/
.. _`Vultr DNS`: https://www.vultr.com
.. _`World Wide DNS`: https://www.worldwidedns.net/
.. _`Zerigo DNS`: http://www.zerigo.com/
.. _`Zonomi DNS`: https://zonomi.com
.. _`AuroraDNS`: https://www.pcextreme.nl/en/aurora/dns
2 changes: 1 addition & 1 deletion docs/dns/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DNS Examples
Create an 'A' record for all your compute nodes
-----------------------------------------------

This example creates a new ``mydomain2.com`` zone at Zerigo and an A record
This example creates a new ``mydomain2.com`` zone at Cloudflare and an A record
for all your Rackspace nodes. Value for the A record is the Node's first
public IP address.

Expand Down
4 changes: 2 additions & 2 deletions docs/dns/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ DNS

DNS API is available in Libcloud 0.6.0 and higher.

DNS API allows you to manage DNS as A Service and services such as Zerigo DNS,
Rackspace Cloud DNS and others.
DNS API allows you to manage DNS as a service with providers such as Amazon
Route 53, Rackspace Cloud DNS, Cloudflare and others.

Terminology
-----------
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/dns/create_a_record_for_all_rackspace_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from libcloud.compute.providers import get_driver as get_compute_driver

CREDENTIALS_RACKSPACE = ("username", "api key")
CREDENTIALS_ZERIGO = ("email", "api key")
CREDENTIALS_CLOUDFLARE = ("api token",)

cls = get_compute_driver(ComputeProvider.RACKSPACE)
compute_driver = cls(*CREDENTIALS_RACKSPACE)

cls = get_dns_driver(DNSProvider.ZERIGO)
dns_driver = cls(*CREDENTIALS_ZERIGO)
cls = get_dns_driver(DNSProvider.CLOUDFLARE)
dns_driver = cls(*CREDENTIALS_CLOUDFLARE)

# Retrieve all the nodes
nodes = compute_driver.list_nodes()
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/dns/create_record_custom_ttl.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from libcloud.dns.types import Provider, RecordType
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
CREDENTIALS_CLOUDFLARE = ("api token",)

cls = get_driver(Provider.ZERIGO)
driver = cls(*CREDENTIALS_ZERIGO)
cls = get_driver(Provider.CLOUDFLARE)
driver = cls(*CREDENTIALS_CLOUDFLARE)

zone = [z for z in driver.list_zones() if z.domain == "example.com"][0]

Expand Down
6 changes: 3 additions & 3 deletions docs/examples/dns/create_record_with_priority.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from libcloud.dns.types import Provider, RecordType
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
CREDENTIALS_CLOUDFLARE = ("api token",)

cls = get_driver(Provider.ZERIGO)
driver = cls(*CREDENTIALS_ZERIGO)
cls = get_driver(Provider.CLOUDFLARE)
driver = cls(*CREDENTIALS_CLOUDFLARE)

zone = [z for z in driver.list_zones() if z.domain == "example.com"][0]

Expand Down
10 changes: 5 additions & 5 deletions docs/examples/dns/export_zone_to_bind_format.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
ZONE_ID = "example.myzone.com"
CREDENTIALS_CLOUDFLARE = ("api token",)
ZONE_NAME = "example.myzone.com"

Cls = get_driver(Provider.ZERIGO)
driver = Cls(*CREDENTIALS_ZERIGO)
Cls = get_driver(Provider.CLOUDFLARE)
driver = Cls(*CREDENTIALS_CLOUDFLARE)

zone = driver.get_zone(zone_id=ZONE_ID)
zone = [zone for zone in driver.list_zones() if zone.domain == ZONE_NAME][0]
print(zone.export_to_bind_format())
10 changes: 5 additions & 5 deletions docs/examples/dns/export_zone_to_bind_format_file.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
ZONE_ID = "example.myzone.com"
CREDENTIALS_CLOUDFLARE = ("api token",)
ZONE_NAME = "example.myzone.com"

Cls = get_driver(Provider.ZERIGO)
driver = Cls(*CREDENTIALS_ZERIGO)
Cls = get_driver(Provider.CLOUDFLARE)
driver = Cls(*CREDENTIALS_CLOUDFLARE)

zone = driver.get_zone(zone_id=ZONE_ID)
zone = [zone for zone in driver.list_zones() if zone.domain == ZONE_NAME][0]
zone.export_to_bind_zone_file(file_path="/home/user/example.com")
10 changes: 5 additions & 5 deletions docs/examples/dns/list_zone_records.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
ZONE_ID = "example.myzone.com"
CREDENTIALS_CLOUDFLARE = ("api token",)
ZONE_NAME = "example.myzone.com"

Cls = get_driver(Provider.ZERIGO)
driver = Cls(*CREDENTIALS_ZERIGO)
Cls = get_driver(Provider.CLOUDFLARE)
driver = Cls(*CREDENTIALS_CLOUDFLARE)

zone = driver.get_zone(zone_id=ZONE_ID)
zone = [zone for zone in driver.list_zones() if zone.domain == ZONE_NAME][0]
records = driver.list_records(zone=zone)
11 changes: 6 additions & 5 deletions docs/examples/dns/list_zone_records_manual_instantiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

CREDENTIALS_ZERIGO = ("email", "api key")
ZONE_ID = "example.myzone.com"
CREDENTIALS_CLOUDFLARE = ("api token",)
ZONE_ID = "your Cloudflare zone ID"
ZONE_NAME = "example.myzone.com"

Cls = get_driver(Provider.ZERIGO)
driver = Cls(*CREDENTIALS_ZERIGO)
Cls = get_driver(Provider.CLOUDFLARE)
driver = Cls(*CREDENTIALS_CLOUDFLARE)

zone = Zone(ZONE_ID, domain=None, type=None, ttl=None, driver=driver)
zone = Zone(ZONE_ID, domain=ZONE_NAME, type="master", ttl=3600, driver=driver)
records = driver.list_records(zone=zone)
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Resource you can manage with Libcloud are divided in the following categories:
* :doc:`Cloud Object Storage and CDN </storage/index>` - services such as Amazon S3 and
Rackspace CloudFiles
* :doc:`Load Balancers as a Service </loadbalancer/index>` - services such as Amazon Elastic Load Balancer
* :doc:`DNS as a Service </dns/index>` - services such as Amazon Route 53 and Zerigo
* :doc:`DNS as a Service </dns/index>` - services such as Amazon Route 53 and Cloudflare
* :doc:`Container Services </container/index>` - container virtualization like Docker and Rkt as well as container based services
* :doc:`Backup as a Service </backup/index>` - services such as Amazon EBS and OpenStack Freezer

Expand Down
4 changes: 2 additions & 2 deletions example_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

Zerigo = get_driver(Provider.ZERIGO)
CloudFlare = get_driver(Provider.CLOUDFLARE)

driver = Zerigo("email", "key")
driver = CloudFlare("api token")

zones = driver.list_zones()
pprint(zones)
Expand Down
Loading