pub struct DnsNameservers {
pub delegated: Vec<String>,
pub in_sync: bool,
pub missing_from_whois: Vec<String>,
pub missing_from_dns: Vec<String>,
}Expand description
A registry’s WHOIS nameserver list checked against the live parent-zone
delegation (DelegationChecker::delegated_ns).
Some registries’ WHOIS lags their own zone (NIC Togo listed 2 of the 4
nameservers .tg delegates for nic.tg), and a WHOIS-only lookup has no
RDAP record to cross-check against, so crate::SmartLookup attaches
this to WHOIS-sourced results. Names are normalized (lowercase, no
trailing dot) and sorted.
Fields§
§delegated: Vec<String>NS names the parent zone delegates for the domain.
in_sync: boolTrue when WHOIS lists exactly the delegated set.
missing_from_whois: Vec<String>Delegated NS names WHOIS does not list.
missing_from_dns: Vec<String>NS names WHOIS lists that the parent does not delegate.
Implementations§
Source§impl DnsNameservers
impl DnsNameservers
Sourcepub fn compare(whois: &[String], delegated: Vec<String>) -> Self
pub fn compare(whois: &[String], delegated: Vec<String>) -> Self
Compares whois (any case, trailing dots allowed) with the
delegated set.
Sourcepub fn whois_lists_none(&self) -> bool
pub fn whois_lists_none(&self) -> bool
True when WHOIS lists no nameservers but the parent delegates some. Many registries’ WHOIS omits nameservers entirely, so unlike a partial list this is no sign of a stale record.
Trait Implementations§
Source§impl Clone for DnsNameservers
impl Clone for DnsNameservers
Source§impl Debug for DnsNameservers
impl Debug for DnsNameservers
Source§impl<'de> Deserialize<'de> for DnsNameservers
impl<'de> Deserialize<'de> for DnsNameservers
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>,
impl Eq for DnsNameservers
Source§impl PartialEq for DnsNameservers
impl PartialEq for DnsNameservers
Source§impl Serialize for DnsNameservers
impl Serialize for DnsNameservers
impl StructuralPartialEq for DnsNameservers
Auto Trait Implementations§
impl Freeze for DnsNameservers
impl RefUnwindSafe for DnsNameservers
impl Send for DnsNameservers
impl Sync for DnsNameservers
impl Unpin for DnsNameservers
impl UnsafeUnpin for DnsNameservers
impl UnwindSafe for DnsNameservers
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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