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
|
Constructor Summary |
ARecord(Name _name,
short _dclass,
int _ttl,
InetAddress _address)
Creates an A Record from the given data |
| Methods inherited from class org.xbill.DNS.Record |
equals,
fromString,
fromWire,
getDClass,
getName,
getRRsetType,
getTTL,
getType,
getWireLength,
hashCode,
newRecord,
newRecord,
newRecord,
toWire,
toWireCanonical,
withName |
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
toString
public String toString()
- Converts to a String
- Overrides:
- toString in class Record
getAddress
public InetAddress getAddress()
- Returns the Internet address