#[repr(u16)]
pub enum RecordType {
Show 65 variants A, NS, MD, MF, CNAME, SOA, MB, MG, MR, NULL, WKS, PTR, HINFO, MINFO, MX, TXT, RP, AFSDB, X25, ISDN, RT, NSAP, NSAP_PTR, SIG, KEY, PX, GPOS, AAAA, LOC, NXT, EID, NIMLOC, SRV, ATMA, NAPTR, KX, CERT, A6, DNAME, SINK, OPT, APL, DS, SSHFP, IPSECKEY, RRSIG, NSEC, DNSKEY, DHCID, NSEC3, NSEC3PARAM, HIP, CDS, CDNSKEY, TKEY, TSIG, IXFR, AXFR, MAILB, MAILA, ANY, ZXFR, CAA, TA, DLV,
}
Expand description

This is a simple u16 value indicating the type of a resource record, and is equal in value to ::libresolv_sys::__ns_type, but we have extended it with record types not present or supported by the underlying library

Variants

A

RFC 1035 - Host Address

NS

RFC 1035 - Authoritative Name Server

MD

RFC 1035 - Mail Destination (Obsolete, use MX)

MF

RFC 1035 - Mail Forwarder (Obsolete, use MX)

CNAME

RFC 1035, 4035, 6604 - Canonical Name for an Alias

SOA

RFC 1035, 1982, 2181, 2308 - Start of a Zone of Authority

MB

RFC 1035 - Mailbox Domain Name (EXPERIMENTAL)

MG

RFC 1035 - Mail Group Member (EXPERIMENTAL)

MR

RFC 1035 - Mail Rename Domain Name (EXPERIMENTAL)

NULL

RFC 1035 - A null resource record (EXPERIMENTAL)

WKS

RFC 1035 - A well known service description

PTR

RFC 1035 - A domain name pointer

HINFO

RFC 1035 - Host information

MINFO

RFC 1035 - Mailbox or mail list information

MX

RFC 1035 - Mail exchange

TXT

RFC 1035 - Text strings

RP

RFC 1183 - Responsible Person

AFSDB

RFC 1183, 6895 - AFS Database Location (Deprecated by RFC5864)

X25

RFC 1183 - X.25 Addresses (EXPERIMENTAL)

ISDN

RFC 1183 - ISDN Addresses (EXPERIMENTAL)

RT

RFC 1183 - Route Through (EXPERIMENTAL)

NSAP

RFC 1706 - Network Service Access Protocol

NSAP_PTR

RFC 1706 - Network Service Access Protocol PTR

SIG

RFC 2535 (Obsolete), 2931 - Signautre

KEY

RFC 2535 (Obsolete) - Key

PX

RFC 2163, 3597 - Pointer to X.400/RFC822 mapping information

GPOS

RFC 1712 - Geographical location

AAAA

RFC 3596 - IPv6 Address

LOC

RFC 1876 - Location Information

NXT

RFC 2535 (Obsolete) - Non-existant Names and Types

EID

https://tools.ietf.org/html/draft-ietf-nimrod-dns-00 - Endpoint Identifier

NIMLOC

https://tools.ietf.org/html/draft-ietf-nimrod-dns-00 - Nimrod Locator

SRV

RFC 2782, 6335 - Service Location

ATMA

NAPTR

KX

CERT

A6

DNAME

RFC 2672, 6604 - Delegation Name

SINK

OPT

RFC 6891, 6895 - Option

APL

DS

RFC 4033, 4034, 4035, 4509 - Delegation signer

SSHFP

RFC 4255 -SSH Public Key Fingerprint

IPSECKEY

IPsec Key

RRSIG

RFC 4033, 4034, 4035, 5702 - DNSSEC signature

NSEC

RFC 4033, 4034, 4035, 4470 - Next Secure record

DNSKEY

RFC 4033, 4034, 4035, 5702 - DNS Key

DHCID

RFC 4701 - DHCP identifier

NSEC3

RFC 5155 - Next Secure record version 3

NSEC3PARAM

RFC 5155 - NSEC3 parameters

HIP

RFC 5205 - Host Identity Protocol

CDS

Child DS - RFC 7344

CDNSKEY

Child DNSKEY - RFC 7344

TKEY

RFC 2930 - Transtion Key record

TSIG

RFC 2845, 3645, 4635, 6895 - Transaction Signature

IXFR

RFC 1995 - Incremental Zone Transfer

AXFR

RFC 1035, 5936 - A request for a transfer of an entire zone

MAILB

RFC 1035 - A request for mailbox-related records (MB, MG or MR)

MAILA

RFC 1035 - A request for mail agent RRs (Obsolete - see MX)

ANY

RFC 1035 - A request for all records

ZXFR

ALSO URI=256, see RFC 7553

CAA

RFC 6844 - Certification Authority Authorization

TA

DNSSEC Trust Authorities

DLV

RFC 4431 - DNSSEC Lookaside Validation record

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.