'Reads questions section of packet'

def readQuestions(self):

    format = '!HH'
    length = struct.calcsize(format)
    for i in range(0, self.numQuestions):
        name = self.readName()
        info = struct.unpack(format, self.data[self.offset:(self.offset + length)])
        self.offset += length
        try:
            question = DNSQuestion(name, info[0], info[1])
            self.questions.append(question)
        except NonLocalNameException:
            pass
