fix formatting of response from dns resolver