Before working with the DNS service, you’ll need to create a connection
to your OpenStack cloud by following the Connect user guide. This will
provide you with the conn
variable used in the examples below.
def list_zones(conn):
print("List Zones:")
for zone in conn.dns.zones():
print(zone)
Full example: dns resource list
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.