Using OpenStack DNS

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():
        print(zone)

Full example: dns resource list

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.