Package org.xbill.DNS

Class CNAMERecord

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class CNAMERecord extends SingleCompressedNameBase
CNAME Record - maps an alias to its real name
See Also:
  • Constructor Details

    • CNAMERecord

      CNAMERecord()
    • CNAMERecord

      public CNAMERecord(Name name, int dclass, long ttl, Name target)
      Creates a new CNAMERecord with the given data
      Parameters:
      target - The name to which the CNAME alias points
  • Method Details

    • getTarget

      public Name getTarget()
      Gets the target of the CNAME Record
    • getAlias

      @Deprecated public Name getAlias()
      Deprecated.
      Gets the name of this record, aka the alias or label to the canonical name specified in getTarget().