Module dns

Typedefs

Entities

entity dns::A

Parents: dns::Record

An A record

attribute ip::ip ipaddress

The address to point this record to

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::AAAA

Parents: dns::Record

attribute string ipaddress

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::Cname

Parents: dns::Record

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::DnsServer

Parents: std::Entity

attribute ip::ip ipaddress
relation dns::Zone slave_zones [0:*]

other end: dns::Zone.slaves [0:*]

relation dns::Zone master_zones [0:*]

other end: dns::Zone.master [1]

The following implements statements select implementations for this entity:

entity dns::MX

Parents: dns::Record

attribute number priority=10
attribute dns::hoststring server

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::NS

Parents: dns::Record

attribute dns::hoststring server

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::PTR

Parents: dns::Record

attribute ip::ip ipaddress
attribute string name

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::Record

Parents: std::Entity

A generic dns resource record

attribute string record_type
attribute string value
attribute string resource=''
relation dns::Zone zone [1]

other end: dns::Zone.records [0:*]

The following implements statements select implementations for this entity:

entity dns::Server

Parents: ip::services::Server, dns::DnsServer

A dns server

attribute string forwarders=''
attribute string allow_recursion=''
attribute bool recursive=True
entity dns::SlaveZone

Parents: dns::Zone

The following implements statements select implementations for this entity:

entity dns::TXT

Parents: dns::Record

attribute string data

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::Zone

Parents: std::Entity

A dns zone.

attribute number ttl=3600
attribute string domain
attribute number refresh=7200
attribute bool add_ns=False
attribute number expiry=1209600
attribute number retry=600
attribute string hostmaster
relation dns::DnsServer slaves [0:*]

other end: dns::DnsServer.slave_zones [0:*]

relation dns::Record records [0:*]

other end: dns::Record.zone [1]

relation dns::DnsServer master [1]

other end: dns::DnsServer.master_zones [0:*]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

Implementations

implementation dns::aImpl
implementation dns::aaaaImpl
implementation dns::addNS
implementation dns::cnameImpl
implementation dns::mxImpl
implementation dns::nsImpl
implementation dns::ptrImpl
implementation dns::txtImpl

Plugins

dns.filter_record(record: std::hoststring, zone: dns::Zone) → std::hoststring

Filter the zone part from the record

dns.ip_to_arpa(ip_addr: ip::ip) → std::hoststring

Convert an ip to the addr.arpa notation

dns.quote(data: string) → string