LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-07-2005, 03:02 PM   #1
grcore
Member
 
Registered: Nov 2004
Distribution: Mandriva + kernel 2.6.15
Posts: 38

Rep: Reputation: 15
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:

nameserver 127.0.0.1

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.

Any ideas?

Thanks

g

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting Wifi problem dguitar Linux - Wireless Networking 3 10-06-2005 04:06 AM
KDE 3.3 Bad Monitor Switching on Desktop Switching Inchoate Linux - Software 1 05-25-2005 02:00 PM
Wifi help please -- switching networks; Yast vs. hosts file costrevs Linux - Wireless Networking 1 03-24-2005 02:42 AM
Ralink WIFI with Asus@Home WIFI wavemachine Linux - Hardware 0 10-20-2004 03:10 PM
Problem with linux and wifi chevy2410 Linux - Newbie 1 01-31-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration