dns: Fix allocation of txt_record in txt record tests