pub struct NameServer {
pub hostname: String,
pub ipv4_address: Option<String>,
pub ipv6_address: Option<String>,
}Expand description
Authoritative nameserver configuration for a DNS zone.
Defines an authoritative nameserver that will have an NS record automatically generated in the zone. Optionally includes IP addresses for glue record generation when the nameserver is within the zone’s own domain.
§Examples
§In-zone nameserver with glue records
nameServers:
- hostname: ns2.example.com.
ipv4Address: "192.0.2.2"
ipv6Address: "2001:db8::2"§Out-of-zone nameserver (no glue needed)
nameServers:
- hostname: ns1.external-provider.net.Fields§
§hostname: StringFully qualified domain name of the nameserver.
Must end with a dot (.) for FQDN. This nameserver will have an NS record automatically generated at the zone apex (@).
Example: ns2.example.com.
ipv4_address: Option<String>Optional IPv4 address for glue record generation.
Required when the nameserver is within the zone’s own domain (in-zone delegation). When provided, an A record will be automatically generated for the nameserver.
Example: For ns2.example.com. in zone example.com, provide "192.0.2.2"
Glue records allow resolvers to find the IP addresses of nameservers that are within the zone they serve, avoiding circular dependencies.
ipv6_address: Option<String>Optional IPv6 address for glue record generation (AAAA record).
When provided along with (or instead of) ipv4Address, an AAAA record will be
automatically generated for the nameserver.
Example: "2001:db8::2"
Trait Implementations§
Source§impl Clone for NameServer
impl Clone for NameServer
Source§fn clone(&self) -> NameServer
fn clone(&self) -> NameServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NameServer
impl Debug for NameServer
Source§impl<'de> Deserialize<'de> for NameServer
impl<'de> Deserialize<'de> for NameServer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for NameServer
impl JsonSchema for NameServer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for NameServer
impl RefUnwindSafe for NameServer
impl Send for NameServer
impl Sync for NameServer
impl Unpin for NameServer
impl UnwindSafe for NameServer
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
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>
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>
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>
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>,
Layered].