I was in a hotel once where i couldn't resolve the dns for some domain no matter what i did. I then realized they were intercepting all DNS calls at the router level, and responding with their own dns (which was buggy). I don't think they intended to do a MitM attack, but i also don't trust their competence at protecting their router from intruders who could do such things. So when in hotels or public wi-fi I ALWAYS use:
1- Private DoH or DoT DNS (all modern OSes support one of them)
2- A VPN
(I actually always use DoT on my android phone, since i don't truste the phone companies either, specially while on roaming)