Uplift patch for 5741 (dns leak protection)

This should probably be under the --enable-proxy-bypass-protection flag.