slow dns resolution
Hi everyone,
I'm running Ubuntu 9.10 and experiencing slow DNS resolution over a wired connection, even running a vanilla kernel without ipv6 capability. I've disabled ipv6 in firefox, changed my DNS servers (tried 4.2.2.1 and OpenDNS), upgraded to beta Tomato firmware for my linksys router, tried disabling the nonexistent ipv6 modules, tried pdnsd, all to no avail. Anyone else have any other suggestions? DNS resolution is fine when the computer is either connected directly to the modem or in Windows 7. Also, my 9.10 laptop works fine with wireless on the same router. Any help would be appreciated :) |
Quote:
Thanks |
"wired" as opposed to wireless, so using an ethernet cable I guess. By "connected directly" I mean bypassing my router and connecting directly to my cable modem.
|
Mind Posting your resolv.conf and your traceroute to each of the dns servers
|
Quote:
|
In what way is it slow? What does a tcpdump of a single DNS resolution look like? Is it retrying? Trying different servers? What are you actually doing to pinpoint a DNS issue in the first place? host/dig/nslookup i would hope.
|
Dice, you can use 'host -a' to see the time involved with resolving a name, which shows up at the bottom of the results.
Code:
jcwx@haley:~$ host -a google.com 24.196.64.53 If you firewall is resolving well, you might consider setting up dnsmasq on it. It works well on OpenWRT. In reality, though, you really shouldn't be having any issues with DNS like you describe. You could run a tcpdump capture to see the traffic itself. Could provide a clue as to what is going on: tcpdump -s 0 -vvvnni eth1 port 53 or icmp Replace the interface with whatever applies in your situation. You can run that on your firewall as well as your local system. The icmp could provide messages indicating there is a network related problem. I was looking at nslookup, and there is a debug mode that could provide some insight into potential DNS issues. dig has plenty of command line options, too. Code:
jcwx@haley:~$ nslookup |
I add in my home router's IP as a dns server too along with the ISP's. It seems to help.
|
I'm so sorry LQ, I was out of the country for a while and then forgot to check the responses to this thread. Unfortunately my computer is still symptomatic: it's slow to load web pages in firefox and opera. It can handle sustained connections for gaming and such with no problems besides an initial pause.
Confusingly, DNS resolution is very fast using dig/nslookup/host. I still have no problems on the same machine with Windows 7. I assumed that I had a DNS issue because of other Ubuntu threads and also firefox's status bar message, "Looking up (site)..." resolv.conf: # Generated by NetworkManager nameserver 192.168.1.1 nameserver 4.2.2.2 Looking at tcpdump on port 53 while entering a site into opera, I noticed that it takes a long time (10-15 seconds) for any traffic to show up, but once it does the page loads quickly. Any thoughts? |
I get the following upon entering "bash.org" into opera:
192.168.1.200.55658 > 192.168.1.1.53: [bad udp cksum ba81!] 63129+ A? bash.org. (26) 20:18:56.625352 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UDP (17), length 70) 192.168.1.1.53 > 192.168.1.200.55658: [udp sum ok] 63129 q: A? bash.org. 1/0/0 bash.org. [26m33s] A 69.61.106.93 (42) 20:19:03.623328 IP (tos 0x0, ttl 64, id 27071, offset 0, flags [DF], proto UDP (17), length 68) |
any thoughts? :(
|
Quote:
Not something I know a lot about so I can't help much further but hopefully the pointer is some help. Might be worth posting your nsswtch.conf (but dig/nslookup/host probably use that so it may not help) -- elsewise time to investigate how the browsers are configured to do name resolution. |
Quote:
Code:
ifconfig -a |
ifconfig -a
eth0 Link encap:Ethernet HWaddr inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10028920 errors:0 dropped:0 overruns:0 frame:0 TX packets:9701624 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:4065667133 (4.0 GB) TX bytes:1024833837 (1.0 GB) Interrupt:30 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:3343984 errors:0 dropped:0 overruns:0 frame:0 TX packets:3343984 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1403095499 (1.4 GB) TX bytes:1403095499 (1.4 GB) Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 resolv.conf: # Generated by NetworkManager nameserver 192.168.1.1 nameserver 4.2.2.2 |
nsswitch.conf
passwd: compat group: compat shadow: compat hosts: files mdns4_minimal [NOTFOUND=return] wins dns mdns4 networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis |
All times are GMT -5. The time now is 09:48 PM. |