public final class DnsRDataSoa extends Object implements DnsResourceRecord.DnsRData
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / MNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / RNAME / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | SERIAL | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | REFRESH | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | RETRY | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | EXPIRE | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | MINIMUM | | | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: MNAME The <domain-name> of the name server that was the original or primary source of data for this zone. RNAME A <domain-name> which specifies the mailbox of the person responsible for this zone. SERIAL The unsigned 32 bit version number of the original copy of the zone. Zone transfers preserve this value. This value wraps and should be compared using sequence space arithmetic. REFRESH A 32 bit time interval before the zone should be refreshed. RETRY A 32 bit time interval that should elapse before a failed refresh should be retried. EXPIRE A 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative. MINIMUM The unsigned 32 bit minimum TTL field that should be exported with any RR from this zone.
Modifier and Type | Class and Description |
---|---|
static class |
DnsRDataSoa.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
DnsRDataSoa.Builder |
getBuilder() |
int |
getExpire() |
long |
getExpireAsLong() |
int |
getMinimum() |
long |
getMinimumAsLong() |
DnsDomainName |
getMName() |
byte[] |
getRawData() |
int |
getRefresh() |
long |
getRefreshAsLong() |
int |
getRetry() |
long |
getRetryAsLong() |
DnsDomainName |
getRName() |
int |
getSerial() |
long |
getSerialAsLong() |
int |
hashCode() |
int |
length() |
static DnsRDataSoa |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
String |
toString(String indent) |
String |
toString(String indent,
byte[] headerRawData) |
public static DnsRDataSoa newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public DnsDomainName getMName()
public DnsDomainName getRName()
public int getSerial()
public long getSerialAsLong()
public int getRefresh()
public long getRefreshAsLong()
public int getRetry()
public long getRetryAsLong()
public int getExpire()
public long getExpireAsLong()
public int getMinimum()
public long getMinimumAsLong()
public int length()
length
in interface DnsResourceRecord.DnsRData
public byte[] getRawData()
getRawData
in interface DnsResourceRecord.DnsRData
public DnsRDataSoa.Builder getBuilder()
public String toString(String indent)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentpublic String toString(String indent, byte[] headerRawData)
toString
in interface DnsResourceRecord.DnsRData
indent
- indentheaderRawData
- the raw data of the DNS header including this RDATA.Copyright © 2011–2019 Pcap4J.org. All rights reserved.