'Simulate a class IN and recurse into the actual class.
@param ttl: time to live for the record
@type ttl: L{int}
@param type: record type
@type type: str
@param domain: the domain
@type domain: bytes
@param rdata:
@type rdate: bytes'

def class_IN(self, ttl, type, domain, rdata):

    record = getattr(dns, ('Record_%s' % (nativeString(type),)), None)
    if record:
        r = record(*rdata)
        r.ttl = ttl
        self.records.setdefault(domain.lower(), []).append(r)
        if (type == 'SOA'):
            self.soa = (domain, r)
    else:
        raise NotImplementedError(('Record    type    %r    not    supported' % (nativeString(type),)))
