smtp_relayserver
Class DNSResRecord

java.lang.Object
  |
  +--smtp_relayserver.DNSResRecord

public class DNSResRecord
extends java.lang.Object

This class represents the structure of a ressource record, used in the domain name system.

Copyright (C) 1998 Valentin Koch

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Field Summary
static byte A
          A host address.
static byte ALL
          A request for all records.
static byte CNAME
          The canonical name for an alias.
static byte MX
          A mail agent.
 java.lang.String name
          A domain name to which this ressource record pertains.
static byte NS
          A authoritative name server.
 short rClass
          The ressource record class.
 java.util.Vector rData
          The data field of this ressource record.
 int rdLength
          The length of bytes in the rdata field.
static byte SOA
          Marks the start of a zone of authority.
 long ttl
          The time to live value of this record.
 short type
          The ressource record type (i.e.
static byte WKS
          A well known service description.
 
Constructor Summary
DNSResRecord()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

A

public static final byte A
A host address.

NS

public static final byte NS
A authoritative name server.

MX

public static final byte MX
A mail agent.

CNAME

public static final byte CNAME
The canonical name for an alias.

SOA

public static final byte SOA
Marks the start of a zone of authority.

WKS

public static final byte WKS
A well known service description.

ALL

public static final byte ALL
A request for all records.

name

public java.lang.String name
A domain name to which this ressource record pertains.

type

public short type
The ressource record type (i.e. A, MX, NS).

rClass

public short rClass
The ressource record class.

ttl

public long ttl
The time to live value of this record.

rdLength

public int rdLength
The length of bytes in the rdata field.

rData

public java.util.Vector rData
The data field of this ressource record.
Constructor Detail

DNSResRecord

public DNSResRecord()