Package org.minidns.edns
Class Edns
java.lang.Object
org.minidns.edns.Edns
public class Edns extends Object
EDNS - Extension Mechanism for DNS.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Edns.Builder
static class
Edns.OptionCode
The EDNS option code. -
Field Summary
Fields Modifier and Type Field Description boolean
dnssecOk
int
extendedRcode
8-bit extended return code.static int
FLAG_DNSSEC_OK
Inform the dns server that the client supports DNSSEC.int
flags
16-bit flags.int
udpPayloadSize
List<EdnsOption>
variablePart
int
version
8-bit version field. -
Constructor Summary
Constructors Constructor Description Edns(Edns.Builder builder)
Edns(Record<OPT> optRecord)
-
Method Summary
Modifier and Type Method Description Record<OPT>
asRecord()
String
asTerminalOutput()
static Edns.Builder
builder()
static Edns
fromRecord(Record<? extends Data> record)
<O extends EdnsOption>
OgetEdnsOption(Edns.OptionCode optionCode)
String
toString()
-
Field Details
-
FLAG_DNSSEC_OK
public static final int FLAG_DNSSEC_OKInform the dns server that the client supports DNSSEC.- See Also:
- Constant Field Values
-
udpPayloadSize
public final int udpPayloadSize -
extendedRcode
public final int extendedRcode8-bit extended return code. RFC 6891 § 6.1.3 EXTENDED-RCODE -
version
public final int version8-bit version field. RFC 6891 § 6.1.3 VERSION -
flags
public final int flags16-bit flags. RFC 6891 § 6.1.4 -
variablePart
-
dnssecOk
public final boolean dnssecOk
-
-
Constructor Details
-
Method Details