org.xbill.DNS
Class ARecord

java.lang.Object
  |
  +--org.xbill.DNS.Record
        |
        +--org.xbill.DNS.ARecord

public class ARecord
extends Record

Address Record - maps a domain name to an Internet address


Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
Constructor Summary
ARecord(Name _name, short _dclass, int _ttl, InetAddress _address)
          Creates an A Record from the given data
 
Method Summary
 InetAddress getAddress()
          Returns the Internet address
 String toString()
          Converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ARecord

public ARecord(Name _name,
               short _dclass,
               int _ttl,
               InetAddress _address)
        throws IOException
Creates an A Record from the given data
Parameters:
address - The address that the name refers to
Method Detail

toString

public String toString()
Converts to a String
Overrides:
toString in class Record

getAddress

public InetAddress getAddress()
Returns the Internet address