Using OpenStack DNS

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.

List Zones

def list_zones(conn):
    print("List Zones:")

    for zone in conn.dns.zones():

Full example: dns resource list