pub struct SyncClient<CC> { /* fields omitted */ }
The Client is abstracted over either trust_dns::tcp::TcpClientConnection or
trust_dns::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.
Creates a new DNS client with the specified connection type
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.
conn
- the ClientConnection
to use for all communication
signer
- signer to use, this needs an associated private key
The result future that will resolve into a DnsResponse
The actual DNS request sender, aka Connection
A future that resolves into the Sender after connection
A handle to send messages to the Sender
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static