DNS getting queried everytime I open a program
My computer slows down a lot when I open programs when my network connection is physically removed. When I reconnect my cable to my network card, the problem goes away. The problem only affects opening desktop programs with KDE or Gnome. Stuff like grep and ls in the terminal aren't affected at all.
I started using iptables lately, and I logged my output packets. I noticed that everytime I open a desktop program, three packets are being sent out. Two of them are on my loopback interface from 127.0.0.1 to the same address, and the third is sent to my DNS server on port 53 with UDP on my ethernet connection. I guessed that the reason my computer slows down opening programs without my ethernet connected is because the packet to the DNS server has to wait to timeout before it will let me open a program. My question is why is a packet getting sent out to my DNS server whenever I open a program, and how do I stop it?
Filtering out the packet with iptables doesn't do anything except make my computer slow even when my connection is still plugged in. Removing the nameserver from etc/hosts causes my browser not to be able to translate domain names, but the packet will still be sent out nevertheless. Completely stopping my network with /etc/rc.d/init.d/network stop will stop the packet to my DNS server and also the two packets from my loopback device from being sent, but of course stops any internet use at all.
I'm using Mandrake 8.1 on a 2.4.17 Kernel, and I use DHCP to get my IP and DNS address for my cable modem. Any help would be greatly appreciated.
Last edited by Zil; 03-12-2002 at 10:58 PM.