'Deal with incoming response packets.  All answers
are held in the cache, and listeners are notified.'

def handleResponse(self, msg):

    now = currentTimeMillis()
    for record in msg.answers:
        expired = record.isExpired(now)
        if (record in self.cache.entries()):
            if expired:
                self.cache.remove(record)
            else:
                entry = self.cache.get(record)
                if (entry is not None):
                    entry.resetTTL(record)
                    record = entry
        else:
            self.cache.add(record)
        self.updateRecord(now, record)
