Package org.minidns.edns
Class Edns
- java.lang.Object
-
- org.minidns.edns.Edns
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
FLAG_DNSSEC_OK
public static final int FLAG_DNSSEC_OK
Inform the dns server that the client supports DNSSEC.- See Also:
- Constant Field Values
-
udpPayloadSize
public final int udpPayloadSize
-
extendedRcode
public final int extendedRcode
8-bit extended return code. RFC 6891 § 6.1.3 EXTENDED-RCODE
-
version
public final int version
8-bit version field. RFC 6891 § 6.1.3 VERSION
-
flags
public final int flags
16-bit flags. RFC 6891 § 6.1.4
-
variablePart
public final List<EdnsOption> variablePart
-
dnssecOk
public final boolean dnssecOk
-
-
Constructor Detail
-
Edns
public Edns(Edns.Builder builder)
-
-
Method Detail
-
getEdnsOption
public <O extends EdnsOption> O getEdnsOption(Edns.OptionCode optionCode)
-
asTerminalOutput
public String asTerminalOutput()
-
fromRecord
public static Edns fromRecord(Record<? extends Data> record)
-
builder
public static Edns.Builder builder()
-
-