noc.commands.dnszone

Module Contents

class noc.commands.dnszone.Command

Bases: noc.core.management.base.BaseCommand

help = DNS zone manipulation tool
TIMES
RR_TYPES = ['A', 'AAAA', 'AFSDB', 'AXFR', 'CERT', 'CNAME', 'DHCID', 'DLV', 'DNAME', 'DNSKEY', 'DS', 'HIP', 'IPSECKEY', 'IXFR', 'KEY', 'LOC', 'MX', 'NAPTR', 'NS', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'OPT', 'PTR', 'RRSIG', 'SIG', 'SPF', 'SRV', 'SSHFP', 'TA', 'TKEY', 'TSIG', 'TXT']
rx_q
rx_mq
rx_soa
add_arguments(self, parser)
handle(self, cmd, *args, **options)
handle_import(self, paths, force=False, clean=False, dry_run=False, zone_profile=None, address_profile=None)
import_zone(self, path, zone_profile, address_profile, dry_run=False, force=False, clean=False)
create_address(self, zone, vrf, address, fqdn, address_profile, dry_run=False, force=False)

Create IPAM record

classmethod iter_tokenize(cls, s)
classmethod iter_tabify(cls, iter)

Replace tabs to spaces in non-quoted parts :param iter: :return:

classmethod iter_strip_comments(cls, iter)

Cut comments to end of line :param iter: :return:

static is_quoted(item)
static has_unquoted(item, v)
classmethod merge_mq(cls, value)
classmethod iter_zone_lines(cls, f)

Yields zone data line by line :param f: File object :return:

iter_bind_zone_rr(self, data)

Parse bind-style zone and yields RRs :param data: Zone text

static from_idna(s)

Convert IDNA domain name to unicode

classmethod parse_ttl(cls, line)

Parse RFC2308 TTL :param line: :return: