com.antiaction.dns
Class DNSRecord
java.lang.Object
|
+--com.antiaction.dns.DNSRecord
- All Implemented Interfaces:
- java.lang.Cloneable
- public class DNSRecord
- extends java.lang.Object
- implements java.lang.Cloneable
DNS Record container, contains a header object and a data object.
As defined in rfc1035.
- Version:
- 2.00
- Author:
- Nicholas Clarke
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DNSRecord
public DNSRecord(DNSRecordHeader header,
DNSRDataInterface rdata)
- Instantiate and initialize a dns record.
clone
public java.lang.Object clone()
- Overrides Cloneable.
- Overrides:
clone in class java.lang.Object
- Returns:
- a clone of this instance.
- Throws:
OutOfMemoryError - if there is not enough memory.- See Also:
Cloneable
setDebug
public void setDebug(boolean debug)
- Toggle debug status.
- Parameters:
b - boolean.
getHeader
public DNSRecordHeader getHeader()
- Get the record header object.
- Returns:
- record header object.
getRData
public DNSRDataInterface getRData()
- Get the rdata object.
- Returns:
- rdata object.
toString
public java.lang.String toString()
- Returns a string representation of the internal state, mostly for debugging purposes.
- Overrides:
toString in class java.lang.Object
- Returns:
- debug string.