Windows will still connect to quite a few even if they are in the hosts file.
Both of them, however, allow you to manually specify the IP of a DNS server in advanced network settings.
For ex: Pihole + Unbound