Can someone try explaining (in simple terms) how Wi-Fi routers push nameservers and routes to my resolv.conf? I've noticed it gets changed automatically as I move between different Wi-Fi networks. I think it's related to dnsmasq and/or DHCP, but the technical details I'm finding via Google searches are a little complex for my level of understanding (i.e., my brain is too small).
And how hypothetically/theoretically this can be used/manipulated by hackers on a public/shared Wi-Fi network?
> lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial