Package org.xbill.DNS
Class Flags
java.lang.Object
org.xbill.DNS.Flags
Constants and functions relating to flags in the DNS header.
- Author:
- Brian Wellington
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
authoritative answerstatic final byte
authenticated datastatic final byte
(security) checking disabledstatic final int
dnssec ok (extended)static final byte
query/responsestatic final byte
recursion availablestatic final byte
recursion desiredstatic final byte
truncated -
Method Summary
-
Field Details
-
QR
public static final byte QRquery/response- See Also:
-
AA
public static final byte AAauthoritative answer- See Also:
-
TC
public static final byte TCtruncated- See Also:
-
RD
public static final byte RDrecursion desired- See Also:
-
RA
public static final byte RArecursion available- See Also:
-
AD
public static final byte ADauthenticated data- See Also:
-
CD
public static final byte CD(security) checking disabled- See Also:
-
DO
public static final int DOdnssec ok (extended)- See Also:
-
-
Method Details
-
string
Converts a numeric Flag into a String -
value
Converts a String representation of an Flag into its numeric value -
isFlag
public static boolean isFlag(int index) Indicates if a bit in the flags field is a flag or not. If it's part of the rcode or opcode, it's not.
-