DNS problem when switching to WiFi...
Mandriva LE 2005
I am having a small DNS problem when switching from a wired to wireless connection. I use this laptop when roaming about the facility, and there are many areas that do not have wireless access (so I have to plug into Ethernet). When I first connect to the network after booting up, DNS works fine. But when I roam to an area that I have to switch my network connection to wirless (from wired) or visa-versa, DNS gets very slow (but it does work after 5-10 seconds or so for each site I go to). I am using dhclient for DHCP.
If I remove this line from my resolv.conf:
Then lookups are fast again.
I believe this just bypasses any DNS caching on my laptop. But if there is a way to flush or reset DNS caching so it works properly, I think that would fix it. The lookups work fine at first boot, and that entry exists in resolv.conf.
I am not sure it has anything to do with tmdns or mdnsresponder.
I have tried changing PEERDNS to =no in all ifcfg- scripts so resolv.conf does not get updated......but that did nothing.
PS - for now I just wrote a script to remove the line "nameserver=127.0.0.1" in resolv.conf, and I run it after switching networks.