Package org.xbill.DNS
Class CNAMERecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SingleNameBase
org.xbill.DNS.SingleCompressedNameBase
org.xbill.DNS.CNAMERecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
CNAME Record - maps an alias to its real name
- See Also:
-
Field Summary
Fields inherited from class org.xbill.DNS.SingleNameBase
singleName -
Constructor Summary
ConstructorsConstructorDescriptionCNAMERecord(Name name, int dclass, long ttl, Name target) Creates a new CNAMERecord with the given data -
Method Summary
Methods inherited from class org.xbill.DNS.SingleCompressedNameBase
rrToWireMethods inherited from class org.xbill.DNS.SingleNameBase
getSingleName, rdataFromString, rrFromWire, rrToStringMethods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Constructor Details
-
CNAMERecord
CNAMERecord() -
CNAMERecord
Creates a new CNAMERecord with the given data- Parameters:
target- The name to which the CNAME alias points
-
-
Method Details
-
getTarget
Gets the target of the CNAME Record -
getAlias
Deprecated.useRecord.getName()Gets the name of this record, aka the alias or label to the canonical name specified ingetTarget().
-
Record.getName()