NOOB - DNS latency on FC6 - seems to "hang" eth0 at random intervals? How to fix?
Hi guys
A more detailed version of my previous FC6 DNS latency post:
I have a problem with FC6 apparently as regards DNS queries. I've already disabled IPV6, but I get latencies of up to a minute when trying to do DNS lookups at random intervals. This times out most of my internet programs, interrupts any running downloads / uploads, and makes my system unavailable for minutes at a time on my LAN.
Strangest thing is that sometimes it works for up to half an hour or more straight, then suddenly for about a minute I have no access to the network.
My machine's ip is 169.254.255.20 and my router is 169.254.255.100.
Here's my /etc/sysconfig/network:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=StefanLinux
GATEWAYDEV=eth0
GATEWAY=169.254.255.100
host.conf:
order hosts,bind
multi on
resolv.conf:
nameserver 196.43.1.11
nameserver 196.25.1.11
option timeout:1
modprobe.conf lines to remove IPV6 stack:
alias ipv6 off
alias net-pf-10 off
ifconfig:
[root@StefanLinux ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:E6:5D:F3:65
inet addr:169.254.255.20 Bcast:169.254.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:848 errors:0 dropped:0 overruns:0 frame:0
TX packets:856 errors:0 dropped:277 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:579256 (565.6 KiB) TX bytes:218654 (213.5 KiB)
Interrupt:177 Base address:0x9000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10977 (10.7 KiB) TX bytes:10977 (10.7 KiB)
I use FC6 2.6.18.1 under a custom kernel with CIFS filesystem support compiled in. My NIC is a
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
(according to lspci). I download a driver in a file called
r1000_v1.05.tgz
from RealTek's website, compiled and installed this and is using it to interface to the NIC.
An interesting thing I noticed is that calling "route" in a terminal results in
[root@StefanLinux ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.255.0 * 255.255.255.0 U 0 0 0 eth0
(i. e. "route" does not return and freezez for up to a minute before finishing and showing the "gateway" line) while I am "hung" on DNS. If I am not, at that moment "hung" on DNS, it returns almost immediately:
[root@StefanLinux ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.255.0 * 255.255.255.0 U 0 0 0 eth0
default 169.254.255.100 0.0.0.0 UG 0 0 0 eth0
[root@StefanLinux ~]#
However, running "route -n" at any time, returns immediately, regardless of whether I have a DNS "hang" at that moment or not:
[root@StefanLinux ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 169.254.255.100 0.0.0.0 UG 0 0 0 eth0
[root@StefanLinux ~]#
The only way I have found to "un-hang" eth0 while this DNS thing is manifesting is by completely upping and downing the interface:
route del default
/sbin/ifconfig eth0 down
and then
/sbin/ifconfig eth0 169.254.255.20 netmask 255.255.255.0 broadcast 169.254.255.255 up
route add default gw 169.254.255.100 netmask 0.0.0.0 eth0
but I have to do the above over and over and over (up to five times a minute or more) to get a continuity in my box's LAN connection. And then it works only for a few seconds at most, before "hanging" again. Any people browsing pages over the LAN served by my FC6 box of course have extreme problems as, from a browser's perspective, it seems to lock up for minutes at a time on HTTP requests... I can't download large files, or upload large files, etc. etc. Distressing.
Anybody in here got a clue how I can get my FC6 machine NOT to apparently make these minute-long DNS queries? The craziest thing is that now, if my internet connection is off (I, for example, switch off the router) NOTHING works on my FC6 machine as regards the LAN. It can't even ping other machines on my LAN.
ANY idea as to how to fix this will certainly help a LOT!
Thanks
|