pub struct ZoneConfig {Show 44 fields
pub zone_name: String,
pub class: DnsClass,
pub zone_type: ZoneType,
pub file: Option<String>,
pub primaries: Option<Vec<PrimarySpec>>,
pub also_notify: Option<Vec<IpAddr>>,
pub notify: Option<NotifyMode>,
pub allow_query: Option<Vec<IpAddr>>,
pub allow_transfer: Option<Vec<IpAddr>>,
pub allow_update: Option<Vec<IpAddr>>,
pub allow_update_raw: Option<String>,
pub allow_update_forwarding: Option<Vec<IpAddr>>,
pub allow_notify: Option<Vec<IpAddr>>,
pub max_transfer_time_in: Option<u32>,
pub max_transfer_time_out: Option<u32>,
pub max_transfer_idle_in: Option<u32>,
pub max_transfer_idle_out: Option<u32>,
pub transfer_source: Option<IpAddr>,
pub transfer_source_v6: Option<IpAddr>,
pub notify_source: Option<IpAddr>,
pub notify_source_v6: Option<IpAddr>,
pub update_policy: Option<String>,
pub journal: Option<String>,
pub ixfr_from_differences: Option<bool>,
pub inline_signing: Option<bool>,
pub auto_dnssec: Option<AutoDnssecMode>,
pub key_directory: Option<String>,
pub sig_validity_interval: Option<u32>,
pub dnskey_sig_validity: Option<u32>,
pub forward: Option<ForwardMode>,
pub forwarders: Option<Vec<ForwarderSpec>>,
pub check_names: Option<CheckNamesMode>,
pub check_mx: Option<CheckNamesMode>,
pub check_integrity: Option<bool>,
pub masterfile_format: Option<MasterfileFormat>,
pub max_zone_ttl: Option<u32>,
pub max_refresh_time: Option<u32>,
pub min_refresh_time: Option<u32>,
pub max_retry_time: Option<u32>,
pub min_retry_time: Option<u32>,
pub multi_master: Option<bool>,
pub request_ixfr: Option<bool>,
pub request_expire: Option<bool>,
pub raw_options: HashMap<String, String>,
}Expand description
Zone configuration from rndc showzone
Fields§
§zone_name: String§class: DnsClass§zone_type: ZoneType§file: Option<String>§primaries: Option<Vec<PrimarySpec>>§also_notify: Option<Vec<IpAddr>>§notify: Option<NotifyMode>§allow_query: Option<Vec<IpAddr>>§allow_transfer: Option<Vec<IpAddr>>§allow_update: Option<Vec<IpAddr>>§allow_update_raw: Option<String>Raw allow-update directive (e.g., “{ key "name"; }”) Used to preserve key-based allow-update when no IPs are specified
allow_update_forwarding: Option<Vec<IpAddr>>§allow_notify: Option<Vec<IpAddr>>§max_transfer_time_in: Option<u32>§max_transfer_time_out: Option<u32>§max_transfer_idle_in: Option<u32>§max_transfer_idle_out: Option<u32>§transfer_source: Option<IpAddr>§transfer_source_v6: Option<IpAddr>§notify_source: Option<IpAddr>§notify_source_v6: Option<IpAddr>§update_policy: Option<String>Raw update-policy directive (complex grammar, kept as raw)
journal: Option<String>§ixfr_from_differences: Option<bool>§inline_signing: Option<bool>§auto_dnssec: Option<AutoDnssecMode>§key_directory: Option<String>§sig_validity_interval: Option<u32>§dnskey_sig_validity: Option<u32>§forward: Option<ForwardMode>§forwarders: Option<Vec<ForwarderSpec>>§check_names: Option<CheckNamesMode>§check_mx: Option<CheckNamesMode>§check_integrity: Option<bool>§masterfile_format: Option<MasterfileFormat>§max_zone_ttl: Option<u32>§max_refresh_time: Option<u32>§min_refresh_time: Option<u32>§max_retry_time: Option<u32>§min_retry_time: Option<u32>§multi_master: Option<bool>§request_ixfr: Option<bool>§request_expire: Option<bool>§raw_options: HashMap<String, String>Raw options that weren’t parsed into structured fields Key: option name (e.g., “zone-statistics”) Value: raw value as it appears in config (e.g., “yes” or “{ … }”)
Implementations§
Source§impl ZoneConfig
impl ZoneConfig
Sourcepub fn to_rndc_block(&self) -> String
pub fn to_rndc_block(&self) -> String
Serialize to RNDC-compatible zone config block
Returns the configuration in the format expected by rndc modzone
and rndc addzone, e.g., { type primary; file "..."; ... };
Trait Implementations§
Source§impl Clone for ZoneConfig
impl Clone for ZoneConfig
Source§fn clone(&self) -> ZoneConfig
fn clone(&self) -> ZoneConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZoneConfig
impl Debug for ZoneConfig
Source§impl PartialEq for ZoneConfig
impl PartialEq for ZoneConfig
impl StructuralPartialEq for ZoneConfig
Auto Trait Implementations§
impl Freeze for ZoneConfig
impl RefUnwindSafe for ZoneConfig
impl Send for ZoneConfig
impl Sync for ZoneConfig
impl Unpin for ZoneConfig
impl UnwindSafe for ZoneConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].