NOOB - DNS latency on FC6 - seems to "hang" eth0 at random intervals? How to fix?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
NOOB - DNS latency on FC6 - seems to "hang" eth0 at random intervals? How to fix?
Hi guys
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.
(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
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!
Sounds to me like the driver didn't compile/install correctly.
When you issue the command /sbin/ifconfig eth0 down of course everything will stop. You are shutting off the eth0 interface, so it won't ping, you can't view anything on any remote computer, etc. That isn't crazy, it is the standard result of the ifdown command.
I'm not a FC6 user, but on Debian the command is ifdown eth0, not eth0 ifdown. Before anything else, try doing the /sbin/ifconfig and route add commands, then do ifdown eth0 and ifup eth0 as root.
The habit of installing drivers from the manufacturers website is a windows thing. If this fails, I'd remove the module you downloaded for this device, and just allow FC6 to autodetect it. Unless it came out very very recently, chances are good it will detect and install a workable driver.
And for what its worth, I think your problem isn't just DNS, it is the entire connectivity issue. DNS queries by default timeout after 2 or 3 seconds, certainly not a full minute. All your network traffic is hung in some way.
Cool, good work on the solution. I strongly suggest you submit that to the cracksmokers that wrote your driver/module. Unless you compiled most of your software yourself, and used very uncommon patches, you shouldn't have seen the results you did. I'd just email them with things like your kernel, distro, and version of gcc, and then link them to this thread with your solution.
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.