|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectipworks.DNSRecord
public class DNSRecord
A record that is returned by the DNS server.
When a Query
method is performed by the DNS bean,
the DNS server returns one or more DNSRecords containing information about the domain you specified.
This information is contained in the different fields of
the record.
Each record may have multiple FieldNames and corresponding FieldValues . You may iterate through these by setting the FieldIndex field.
Domain: This field contains the domain name associated with the selected response record, at RecordIndex .
FieldCount: This field contains the number of fields in the current record.
After a successful query, the field values for each record will be provided in the Records
collection
.
To retrieve a particular field value for a record, first set FieldIndex
to a
valid response field index, and then query records collection for the value of that field.
FieldIndex:
This field contains the index of the selected field of the current record. FieldIndex
valid values are from 0 to ( FieldCount
- 1).
After a successful query, the field values for each record will be provided in the Records
collection
.
To retrieve a particular field value for a record, first set FieldIndex
to a
valid response field index, and then query records collection for the value of that field.
FieldName:
This field contains the name of the field selected by FieldIndex
. Field names are different depending on the record type. For example, an MX record type will contain two fields: PREFERENCE and EXCHANGE, but an SOA record type contains seven fields.
Field names:
FieldValue:
This field contains the value of the field selected by FieldIndex
.
After a successful query, the field values for each record will be provided in the Records
collection
.
To retrieve a particular field value for a record, first set FieldIndex
to a
valid response field index, and then query records collection for the value of that field.
RecordData: This field contains the full record data as received from the DNS server.
After a successful query, the field values for each record will be provided in the Records
collection
.
To retrieve a particular field value for a record, first set FieldIndex
to a
valid response field index, and then query records collection for the value of that field.
RecordType: This field contains the record type.
Record types correspond to QueryType
and are defined as follows:
RecordTypeName:
This field contains the string representation of the current record type defined by RecordType
.
TTL: This field contains the record Time To Live (TTL) value. The TTL specifies the time interval in seconds that the record is valid, or the time interval that the record can be cached before the DNS server should be queried again.
Atom
,
Atom.DNSRecord
Field Summary | |
---|---|
static int |
rtAAAA
|
static int |
rtAddress
|
static int |
rtAFSDB
|
static int |
rtCName
|
static int |
rtHostInfo
|
static int |
rtISDN
|
static int |
rtMailBox
|
static int |
rtMailGroup
|
static int |
rtMailInfo
|
static int |
rtMD
|
static int |
rtMF
|
static int |
rtMR
|
static int |
rtMX
|
static int |
rtNAPTR
|
static int |
rtNS
|
static int |
rtNULL
|
static int |
rtPointer
|
static int |
rtRP
|
static int |
rtRT
|
static int |
rtSOA
|
static int |
rtSRV
|
static int |
rtText
|
static int |
rtWKS
|
static int |
rtX25
|
Constructor Summary | |
---|---|
DNSRecord()
|
Method Summary | |
---|---|
java.lang.String |
getDomain()
|
int |
getFieldCount()
|
int |
getFieldIndex()
|
java.lang.String |
getFieldName()
|
byte[] |
getFieldValue()
|
byte[] |
getRecordData()
|
int |
getRecordType()
|
java.lang.String |
getRecordTypeName()
|
int |
getTTL()
|
void |
setFieldIndex(int value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int rtAddress
public static final int rtNS
public static final int rtMD
public static final int rtMF
public static final int rtCName
public static final int rtSOA
public static final int rtMailBox
public static final int rtMailGroup
public static final int rtMR
public static final int rtNULL
public static final int rtWKS
public static final int rtPointer
public static final int rtHostInfo
public static final int rtMailInfo
public static final int rtMX
public static final int rtText
public static final int rtRP
public static final int rtAFSDB
public static final int rtX25
public static final int rtISDN
public static final int rtRT
public static final int rtAAAA
public static final int rtSRV
public static final int rtNAPTR
Constructor Detail |
---|
public DNSRecord()
Method Detail |
---|
public java.lang.String getDomain()
public int getFieldCount()
public int getFieldIndex()
public void setFieldIndex(int value)
public java.lang.String getFieldName()
public byte[] getFieldValue()
public byte[] getRecordData()
public int getRecordType()
public java.lang.String getRecordTypeName()
public int getTTL()
|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |