Merge "Fix wrong behavior of async DNS API with flags"