That isn't an effective solution on a corporate network that depends on internal name resolution.
And FWIW I run into the same DNS-like issues with Firefox on my home network, which uses Cloudflare's 1.1.1.1 DNS. Perhaps it is something to do with the way my company provisions my machine, I don't know. All I know is that Chrome has no issues. I've made efforts to track down the issue but it's ultimately not worth my time.