updated dns_client op and error codes parsing