IP*Works! V9

ipworks
Class DNSRecord

java.lang.Object
  extended by ipworks.DNSRecord

public class DNSRecord
extends java.lang.Object

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:

A Records
ADDRESS
NS Records
DNAME
MD
MADNAME
MF
MADNAME
CNAME
CNAME
SOA
MNAME
SOA
RNAME
SOA
SERIAL
SOA
REFRESH
SOA
RETRY
SOA
EXPIRE
SOA
MINIMUM
MB
MADNAME
MG
MGMNAME
MR
NEWNAME
NULL
NULL
WKS
ADDRESS
WKS
PROTOCOL
WKS
SERVICEMAP
PTR
PTRDNAME
HINFO
CPU
HINFO
OS
MINFO
RMAILBX
MINFO
EMAILBX
MX
PREFERENCE
MX
EXCHANGE
TXT
TXT
RP
MBOXDNAME
RP
TXTDNAME
AFSDB
SUBTYPE
AFSDB
HOSTNAME
X25
PSDNADDRESS
ISDN
ISDNADDRESS
RT
PREFERENCE
RT
INTERMEDIATE
AAAA
ADDRESS
SRV
PRIORITY
SRV
WEIGHT
SRV
PORT
SRV
TARGET
NAPTR
ORDER
NAPTR
PRIORITY
NAPTR
FLAGS
NAPTR
SERVICES
NAPTR
REGEXP
NAPTR
REPLACEMENT

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:

rtAddress (0)
Address Record
rtNS (1)
Name Server Record
rtMD (2)
Mail Destination Record
rtMF (3)
Mail Forwarder Record
rtCName (4)
Canonical Name Record
rtSOA (5)
Start Of Authority Record
rtMailBox (6)
MailBox Record
rtMailGroup (7)
Mail Group Record
rtMR (8)
MailBox Rename Record
rtNULL (9)
NULL Record
rtWKS (10)
Well Known Services Record
rtPointer (11)
Pointer Record
rtHostInfo (12)
Host Information Record
rtMailInfo (13)
Mail Information Record
rtMX (14)
Mail Exchange Record
rtText (15)
Text Record
rtRP (16)
Responsible Person Record
rtAFSDB (17)
Service Record
rtX25 (18)
X25 Record
rtISDN (19)
ISDN Record
rtRT (20)
Route Through Record
rtAAAA (28)
AAAA Record
rtSRV (33)
SRV Record (location of services)
rtNAPTR (35)
SRV Record (Naming Authority Pointer)

RecordTypeName: This field contains the string representation of the current record type defined by RecordType .

A (0)
Address Record
NS (1)
Name Server Record
MD (2)
Mail Destination Record
MF (3)
Mail Forwarder Record
CName (4)
Canonical Name Record
SOA (5)
Start Of Authority Record
MB (6)
MailBox Record
MG (7)
Mail Group Record
MR (8)
MailBox Rename Record
NULL (9)
NULL Record
WKS (10)
Well Known Services Record
PTR (11)
Pointer Record
HINFO (12)
Host Information Record
MINFO (13)
Mail Information Record
MX (14)
Mail Exchange Record
TXT (15)
Text Record
RP (16)
Responsible Person Record
AFSDB (17)
Service Record
X25 (18)
X25 Record
ISDN (19)
ISDN Record
RT (20)
Route Through Record
AAAA (28)
AAAA Record
NAPTR (33)
Naming Authority Pointer Record

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.

See Also:
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

rtAddress

public static final int rtAddress
See Also:
Constant Field Values

rtNS

public static final int rtNS
See Also:
Constant Field Values

rtMD

public static final int rtMD
See Also:
Constant Field Values

rtMF

public static final int rtMF
See Also:
Constant Field Values

rtCName

public static final int rtCName
See Also:
Constant Field Values

rtSOA

public static final int rtSOA
See Also:
Constant Field Values

rtMailBox

public static final int rtMailBox
See Also:
Constant Field Values

rtMailGroup

public static final int rtMailGroup
See Also:
Constant Field Values

rtMR

public static final int rtMR
See Also:
Constant Field Values

rtNULL

public static final int rtNULL
See Also:
Constant Field Values

rtWKS

public static final int rtWKS
See Also:
Constant Field Values

rtPointer

public static final int rtPointer
See Also:
Constant Field Values

rtHostInfo

public static final int rtHostInfo
See Also:
Constant Field Values

rtMailInfo

public static final int rtMailInfo
See Also:
Constant Field Values

rtMX

public static final int rtMX
See Also:
Constant Field Values

rtText

public static final int rtText
See Also:
Constant Field Values

rtRP

public static final int rtRP
See Also:
Constant Field Values

rtAFSDB

public static final int rtAFSDB
See Also:
Constant Field Values

rtX25

public static final int rtX25
See Also:
Constant Field Values

rtISDN

public static final int rtISDN
See Also:
Constant Field Values

rtRT

public static final int rtRT
See Also:
Constant Field Values

rtAAAA

public static final int rtAAAA
See Also:
Constant Field Values

rtSRV

public static final int rtSRV
See Also:
Constant Field Values

rtNAPTR

public static final int rtNAPTR
See Also:
Constant Field Values
Constructor Detail

DNSRecord

public DNSRecord()
Method Detail

getDomain

public java.lang.String getDomain()

getFieldCount

public int getFieldCount()

getFieldIndex

public int getFieldIndex()

setFieldIndex

public void setFieldIndex(int value)

getFieldName

public java.lang.String getFieldName()

getFieldValue

public byte[] getFieldValue()

getRecordData

public byte[] getRecordData()

getRecordType

public int getRecordType()

getRecordTypeName

public java.lang.String getRecordTypeName()

getTTL

public int getTTL()

IP*Works! V9

Copyright (c) 2013 /n software inc. - All rights reserved.