Struct trust_dns::client::SecureClientHandle [] [src]

#[must_use = "queries can only be sent through a ClientHandle"]
pub struct SecureClientHandle<H: ClientHandle + 'static> { /* fields omitted */ }

Performs DNSSec validation of all DNS responses from the wrapped ClientHandle

This wraps a ClientHandle, changing the implementation send() to validate all message responses for Query operations. Update operation responses are not validated by this process.

Methods

impl<H> SecureClientHandle<H> where
    H: ClientHandle + 'static, 
[src]

[src]

Create a new SecureClientHandle wrapping the speicified client.

This uses the compiled in TrustAnchor default trusted keys.

Arguments

  • client - client to use for all connections to a remote server.

[src]

Create a new SecureClientHandle wrapping the speicified client.

This allows a custom TrustAnchor to be define.

Arguments

  • client - client to use for all connections to a remote server.
  • trust_anchor - custom DNSKEYs that will be trusted, can be used to pin trusted keys.

Trait Implementations

impl<H: Clone + ClientHandle + 'static> Clone for SecureClientHandle<H>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<H> ClientHandle for SecureClientHandle<H> where
    H: ClientHandle + 'static, 
[src]

[src]

Ony returns true if and only if this client is validating DNSSec. Read more

[src]

Send a message via the channel in the client Read more

[src]

A classic DNS query Read more

[src]

A classic DNS query Read more

[src]

Sends a NOTIFY message to the remote system Read more

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Deletes all records at the specified name Read more