pub struct SyncClient<CC: ClientConnection> { /* private fields */ }
Expand description

The Client is abstracted over either trust_dns_client::tcp::TcpClientConnection or trust_dns_client::udp::UdpClientConnection.

Usage of TCP or UDP is up to the user. Some DNS servers disallow TCP in some cases, so if TCP double check if UDP works.

Implementations

Creates a new DNS client with the specified connection type

Arguments
This is supported on crate feature dnssec only.

Creates a new DNS client with the specified connection type and a SIG0 signer.

This is necessary for signed update requests to update trust-dns-server entries.

Arguments
  • conn - the ClientConnection to use for all communication
  • signer - signer to use, this needs an associated private key
This is supported on crate feature dnssec only.

Creates a new DNS client with the specified connection type and TSIG signer.

This is necessary for signed update requests to update certain servers entries.

Arguments
  • conn - the ClientConnection to use for all communication
  • signer - signer to use

Trait Implementations

The result stream that will resolve into a DnsResponse

The AsyncClient type used

Return the inner Futures items Read more

This will create a new AsyncClient and spawn it into a new Runtime

Sends an arbitrary DnsRequest to the client

A classic DNS query, i.e. does not perform any DNSSec operations Read more

Sends a NOTIFY message to the remote system Read more

Sends a record to create on the server, this will fail if the record exists (atomicity depends on the server) Read more

Appends a record to an existing rrset, optionally require the rrset to exist (atomicity depends on the server) Read more

Compares and if it matches, swaps it for the new value (atomicity depends on the server) Read more

Deletes a record (by rdata) from an rrset, optionally require the rrset to exist. Read more

Deletes an entire rrset, optionally require the rrset to exist. Read more

Deletes all records at the specified name Read more

Download all records from a zone, or all records modified since given SOA was observed. The request will either be a AXFR Query (ask for full zone transfer) if a SOA was not provided, or a IXFR Query (incremental zone transfer) if a SOA was provided. Read more

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