Class Record

  • All Implemented Interfaces:
    java.lang.Comparable<Record>

    public class Record
    extends java.lang.Object
    implements java.lang.Comparable<Record>
    A basic representation of a DNS resource record, containing the record type, name and data.
    Author:
    mpolden
    • Method Detail

      • ttl

        public java.time.Duration ttl()
        The TTL value of this
      • data

        public RecordData data()
        Data in this, e.g. IP address for records of type A
      • name

        public RecordName name()
        Name of this, e.g. a FQDN for records of type A
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Record that)
        Specified by:
        compareTo in interface java.lang.Comparable<Record>