'Crafts raw DNS resolution response packet'

def response(self, resolution):

    retVal = ''
    if self._query:
        retVal += self._raw[:2]
        retVal += '\x85\x80'
        retVal += ((self._raw[4:6] + self._raw[4:6]) + '\x00\x00\x00\x00')
        retVal += self._raw[12:((12 + self._raw[12:].find('\x00')) + 5)]
        retVal += '\xc0\x0c'
        retVal += '\x00\x01'
        retVal += '\x00\x01'
        retVal += '\x00\x00\x00    '
        retVal += '\x00\x04'
        retVal += ''.join((chr(int(_)) for _ in resolution.split('.')))
    return retVal
