Previous topic

The nova.network.manager Module

Next topic

The nova.network.model Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.network.minidns Module

class MiniDNS

Bases: object

Trivial DNS driver. This will read/write to a local, flat file and have no effect on your actual DNS system. This class is strictly for testing purposes, and should keep you out of dependency hell.

Note that there is almost certainly a race condition here that will manifest anytime instances are rapidly created and deleted. A proper implementation will need some manner of locking.

create_domain(fqdomain)
create_entry(name, address, type, domain)
delete_dns_file()
delete_domain(fqdomain)
delete_entry(name, domain)
get_domains()
get_entries_by_address(address, domain)
get_entries_by_name(name, domain)
modify_address(name, address, domain)
parse_line(line)
qualify(name, domain)