Module dns

Typedefs

typedef dns::hoststring
  • Base type string

  • Type constraint /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.?$/

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

attribute string value

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 master_zones [0:*]

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

relation dns::Zone slave_zones [0:*]

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

The following implements statements select implementations for this entity:

entity dns::MX

Parents: dns::Record

attribute dns::hoststring server
attribute number priority=10

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 string name
attribute ip::ip ipaddress

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity dns::Record

Parents: std::Entity

A base class for high level record entities

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

The following implements statements select implementations for this entity:

entity dns::ResourceRecord

Parents: std::Entity

A generic dns resource record

attribute string resource=''
attribute string value
attribute string record_type
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 bool recursive=true
attribute string allow_recursion=''
attribute string forwarders=''
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 string hostmaster
attribute string domain
attribute number refresh=7200
attribute number retry=600
attribute number expiry=1209600
attribute number ttl=3600
attribute bool add_ns=false
relation dns::DnsServer master [1]

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

relation dns::DnsServer slaves [0:*]

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

relation dns::ResourceRecord records [0:*]

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

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