'Equality test on name, type, and class'

def __eq__(self, other):

    if isinstance(other, DNSEntry):
        return ((self.name == other.name) and (self.type == other.type) and (self.clazz == other.clazz))
    return 0
