The nova.network.minidns Module

class MiniDNS

Bases: nova.network.dns_driver.DNSDriver

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)

Previous topic

The nova.network.manager Module

Next topic

The nova.network.model Module

Project Source

This Page