pub struct DnsComparator { /* private fields */ }Expand description
Compares DNS records for a domain across two nameservers.
Queries both servers concurrently and produces a structured comparison showing common records, differences, and errors.
Implementations§
Source§impl DnsComparator
impl DnsComparator
Sourcepub async fn compare(
&self,
domain: &str,
record_type: RecordType,
server_a: &str,
server_b: &str,
) -> Result<DnsComparison>
pub async fn compare( &self, domain: &str, record_type: RecordType, server_a: &str, server_b: &str, ) -> Result<DnsComparison>
Compares DNS records for a domain between two nameservers.
§Arguments
domain- The domain name to queryrecord_type- The type of DNS record to compare (A, AAAA, MX, etc.)server_a- IP address of the first nameserverserver_b- IP address of the second nameserver
§Returns
A DnsComparison showing records from each server, whether they match,
and which records are unique to each server or shared.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DnsComparator
impl !UnwindSafe for DnsComparator
impl Freeze for DnsComparator
impl Send for DnsComparator
impl Sync for DnsComparator
impl Unpin for DnsComparator
impl UnsafeUnpin for DnsComparator
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
Mutably borrows from an owned value. Read more
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>
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