org.xbill.DNS
Class CNAMERecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.CNAMERecord
- All Implemented Interfaces:
- Cloneable, Comparable
public class CNAMERecord
- extends Record
CNAME Record - maps an alias to its real name
- Author:
- Brian Wellington
Constructor Summary |
CNAMERecord(Name name,
int dclass,
long ttl,
Name alias)
Creates a new CNAMERecord with the given data |
Methods inherited from class org.xbill.DNS.Record |
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
singleName
protected Name singleName
CNAMERecord
public CNAMERecord(Name name,
int dclass,
long ttl,
Name alias)
- Creates a new CNAMERecord with the given data
- Parameters:
alias
- The name to which the CNAME alias points
getTarget
public Name getTarget()
- Gets the target of the CNAME Record
getAlias
public Name getAlias()
- Gets the alias specified by the CNAME Record
getSingleName
protected Name getSingleName()