#[repr(u16)]
pub enum RecordType {
Show 90 variants A, NS, MD, MF, CNAME, SOA, MB, MG, MR, NUL, WKS, PTR, HINFO, MINFO, MX, TXT, RP, AFSDB, X25, ISDN, RT, NSAP, NSAPPTR, 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, TLSA, SMIMEA, HIP, NINFO, RKEY, TALINK, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD, SVCB, HTTPS, SPF, UINFO, UID, GID, UNSPEC, NID, L32, L64, LP, EUI48, EUI64, TKEY, TSIG, IXFR, AXFR, MAILB, MAILA, ANY, URI, CAA, AVC, DOA, AMTRELAY, TA, DLV, UNKNOWN,
}

Variants

A

Address record

NS

Name server record

MD

Obsolete

MF

Obsolete

CNAME

Canonical name record

SOA

Start of authority record

MB

Unlikely to be adopted. See https://tools.ietf.org/html/rfc2505

MG

Unlikely to be adopted. See https://tools.ietf.org/html/rfc2505

MR

Unlikely to be adopted. See https://tools.ietf.org/html/rfc2505

NUL

Obsolete

WKS

Not to be relied upon. See https://tools.ietf.org/html/rfc1123

PTR

PTR resource record (pointer to a canonical name)

HINFO

Host information

MINFO

Unlikely to be adopted. See https://tools.ietf.org/html/rfc2505

MX

Mail exchange record

TXT

Text record

RP

Responsible person

AFSDB

AFS database record

X25

Maps a domain name to a PSDN address number

ISDN

Maps a domain name to an ISDN telephone number

RT

Specifies intermediate host routing to host with the name of the RT-record

NSAP

Maps a domain name to an NSAP address

NSAPPTR

Facilitates translation from NSAP address to DNS name

SIG

Signature - obsolete

KEY

Key record - obsolete

PX

Pointer to X.400/RFC822 mapping information

GPOS

A more limited early version of LOC

AAAA

IPv6 address record

LOC

Location record

NXT

Obsolete

EID

Never made it to RFC status. See https://tools.ietf.org/html/draft-ietf-nimrod-dns-00

NIMLOC

Never made it to RFC status. See https://tools.ietf.org/html/draft-ietf-nimrod-dns-00

SRV

Service locator

ATMA

Defined by the ATM forum committee

NAPTR

Naming authority pointer

KX

Key exchanger record

CERT

Certificate record

A6

Obsolete

DNAME

Delegation name record

SINK

Never made it to RFC status. See https://tools.ietf.org/html/draft-eastlake-kitchen-sink

OPT

Option (needed to support EDNS)

APL

Address prefix list

DS

Delegation signer

SSHFP

SSH public key fingerprint

IPSECKEY

IPsec key

RRSIG

DNSSEC signature

NSEC

Next Secure record

DNSKEY

DNS Key record

DHCID

DHCP identifier

NSEC3

Next Secure record version 3

NSEC3PARAM

NSEC3 parameters

TLSA

TLSA certificate association

SMIMEA

S/MIME cert association

HIP

Host Identity Protocol

NINFO

Expired without adoption by IETF

RKEY

Expired without adoption by IETF

Never made it to RFC status. See https://tools.ietf.org/html/draft-wijngaards-dnsop-trust-history-02

CDS

Child DS

CDNSKEY

Child DNSKEY

OPENPGPKEY

OpenPGP public key record

CSYNC

Child-to-parent synchronization

ZONEMD

Draft: see https://tools.ietf.org/html/draft-ietf-dnsop-dns-zone-digest-14

SVCB

Draft: see https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https/00

HTTPS

Draft: see https://datatracker.ietf.org/doc/draft-ietf-dnsop-svcb-https/00

SPF

Obsolete

UINFO

IANA reserved

UID

IANA reserved

GID

IANA reserved

UNSPEC

IANA reserved

NID

Experimental: see https://tools.ietf.org/html/rfc6742

L32

Experimental: see https://tools.ietf.org/html/rfc6742

L64

Experimental: see https://tools.ietf.org/html/rfc6742

LP

Experimental: see https://tools.ietf.org/html/rfc6742

EUI48

MAC address (EUI-48)

EUI64

MAC address (EUI-64)

TKEY

Transaction key record

TSIG

Transaction signature

IXFR

Incremental zone transfer

AXFR

Authoritative zone transfer

MAILB

Returns MB, MG, MR, or MINFO. Unlikely to be adopted.

MAILA

Obsolete

ANY

All cached records

URI

Uniform resource identifier

CAA

Certification authority authorization

AVC

Application visibility and control

DOA

Digital object architecture

AMTRELAY

Automatic multicast tunneling relay

TA

DNSSEC trust authorities

DLV

DNSSEC lookaside validation record

UNKNOWN

Implementations

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 type returned in the event of a conversion error.

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.