[−][src]Struct trust_dns_client::rr::rdata::nsec::NSEC
RFC 4034, DNSSEC Resource Records, March 2005
4.1. NSEC RDATA Wire Format
The RDATA of the NSEC RR is as shown below:
1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ Next Domain Name /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ Type Bit Maps /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
4.1.3. Inclusion of Wildcard Names in NSEC RDATA
If a wildcard owner name appears in a zone, the wildcard label ("*")
is treated as a literal symbol and is treated the same as any other
owner name for the purposes of generating NSEC RRs. Wildcard owner
names appear in the Next Domain Name field without any wildcard
expansion. [RFC4035] describes the impact of wildcards on
authenticated denial of existence.
Methods
impl NSEC
[src]
pub fn new(next_domain_name: Name, type_bit_maps: Vec<RecordType>) -> NSEC
[src]
Constructs a new NSEC RData, warning this won't guarantee that the NSEC covers itself which it should at it's own name.
Arguments
next_domain_name
- the name labels of the next ordered name in the zonetype_bit_maps
- a bit map of the types that exist at this name
Returns
An NSEC RData for use in a Resource Record
pub fn new_cover_self(
next_domain_name: Name,
type_bit_maps: Vec<RecordType>
) -> NSEC
[src]
next_domain_name: Name,
type_bit_maps: Vec<RecordType>
) -> NSEC
Constructs a new NSEC RData, this will add the NSEC itself as covered, generally correct for NSEC records generated at their own name
Arguments
next_domain_name
- the name labels of the next ordered name in the zonetype_bit_maps
- a bit map of the types that exist at this name
Returns
An NSEC RData for use in a Resource Record
pub fn next_domain_name(&self) -> &Name
[src]
RFC 4034, DNSSEC Resource Records, March 2005
4.1.1. The Next Domain Name Field
The Next Domain field contains the next owner name (in the canonical
ordering of the zone) that has authoritative data or contains a
delegation point NS RRset; see Section 6.1 for an explanation of
canonical ordering. The value of the Next Domain Name field in the
last NSEC record in the zone is the name of the zone apex (the owner
name of the zone's SOA RR). This indicates that the owner name of
the NSEC RR is the last name in the canonical ordering of the zone.
A sender MUST NOT use DNS name compression on the Next Domain Name
field when transmitting an NSEC RR.
Owner names of RRsets for which the given zone is not authoritative
(such as glue records) MUST NOT be listed in the Next Domain Name
unless at least one authoritative RRset exists at the same owner
name.
pub fn type_bit_maps(&self) -> &[RecordType]
[src]
RFC 4034, DNSSEC Resource Records, March 2005
4.1.2. The Type Bit Maps Field
The Type Bit Maps field identifies the RRset types that exist at the
NSEC RR's owner name.
A zone MUST NOT include an NSEC RR for any domain name that only
holds glue records.
Trait Implementations
impl Clone for NSEC
[src]
impl Debug for NSEC
[src]
impl Eq for NSEC
[src]
impl Hash for NSEC
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NSEC> for NSEC
[src]
impl StructuralEq for NSEC
[src]
impl StructuralPartialEq for NSEC
[src]
Auto Trait Implementations
impl RefUnwindSafe for NSEC
impl Send for NSEC
impl Sync for NSEC
impl Unpin for NSEC
impl UnwindSafe for NSEC
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,