pub struct ZoneConfig {
    pub zone: String,
    pub zone_type: ZoneType,
    pub file: Option<String>,
    pub allow_update: Option<bool>,
    pub allow_axfr: Option<bool>,
    pub enable_dnssec: Option<bool>,
    pub keys: Vec<KeyConfig>,
    pub stores: Option<StoreConfig>,
}
Expand description

Configuration for a zone

Fields

zone: String

name of the zone

zone_type: ZoneType

type of the zone

file: Option<String>

location of the file (short for StoreConfig::FileConfig{zone_file_path})

allow_update: Option<bool>

Deprecated allow_update, this is a Store option

allow_axfr: Option<bool>

Allow AXFR (TODO: need auth)

enable_dnssec: Option<bool>

Enable DnsSec TODO: should this move to StoreConfig?

keys: Vec<KeyConfig>

Keys for use by the zone

stores: Option<StoreConfig>

Store configurations, TODO: allow chained Stores

Implementations

Return a new zone configuration

Arguments
  • zone - name of a zone, e.g. example.com
  • zone_type - Type of zone, e.g. Primary, Secondary, etc.
  • file - relative to Config base path, to the zone file
  • allow_update - enable dynamic updates
  • allow_axfr - enable AXFR transfers
  • enable_dnssec - enable signing of the zone for DNSSec
  • keys - list of private and public keys used to sign a zone

returns the name of the Zone, i.e. the example.com of www.example.com.

the type of the zone

path to the zone file, i.e. the base set of original records in the zone

this is ony used on first load, if dynamic update is enabled for the zone, then the journal file is the actual source of truth for the zone.

enable dynamic updates for the zone (see SIG0 and the registered keys)

enable AXFR transfers

declare that this zone should be signed, see keys for configuration of the keys for signing

This is supported on crate feature dnssec only.

the configuration for the keys used for auth and/or dnssec zone signing.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more