Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS resolution speed

Reply
Thread Tools Display Modes

DNS resolution speed

 
 
aot@te.dk
Guest
Posts: n/a

 
      01-30-2005, 07:55 PM
Hi
I'm dealing with the following problem:

My Linux-applications (e.g. Evolution, Mozilla) take a really long time
to resolve an address. When I use the host program, I get the answer in
a couple of miliseconds, but from the application I wait up half a
minute.

The router, a D-Link DI-614+, acts as a nameserver-proxy. When I trick
to overwrite /etc/resolv.conf with an external nameserver, the
resolution goes fine.

It doesn't seem to affect the Windows-pc's in my network, BTW.
So I'm quite puzzled.

Andreas

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      01-30-2005, 09:54 PM
On 30 Jan 2005 12:55:02 -0800, (E-Mail Removed) <(E-Mail Removed)> wrote:
> Hi
> I'm dealing with the following problem:
>
> My Linux-applications (e.g. Evolution, Mozilla) take a really long time
> to resolve an address. When I use the host program, I get the answer in
> a couple of miliseconds, but from the application I wait up half a
> minute.
>
> The router, a D-Link DI-614+, acts as a nameserver-proxy. When I trick
> to overwrite /etc/resolv.conf with an external nameserver, the
> resolution goes fine.


If you are using dhcp, configure it to NOT change your nameservers and put
your ISP's nameservers in /etc/resolv.conf.

Note that for connections within your LAN, Linux may be attempting to
resolve connecting LAN IPs (which can cause delays). To eliminate that
problem and originally sluggish SBC nameservers, I run my own caching
nameserver (bind9) with added forward/reverse zones for my LAN.
 
Reply With Quote
 
Andreas
Guest
Posts: n/a

 
      01-31-2005, 02:41 PM
Thanks for you answer. That was what I basically did. I was just
wondering, wether the delay really is caused by the router, since it
doesn't seem to affect Win-PCs.

 
Reply With Quote
 
Mark South
Guest
Posts: n/a

 
      01-31-2005, 02:47 PM
On Mon, 31 Jan 2005 07:41:54 -0800, Andreas wrote:

> Thanks for you answer. That was what I basically did. I was just
> wondering, wether the delay really is caused by the router, since it
> doesn't seem to affect Win-PCs.


Another possibility is that it is caused by lookups going to IPv6 first,
then falling back to IPv4 after a long delay. This is a known condition
with the default install of Mandrake 10.1 for example - it comes up almost
daily on the Mandrake forum at linuxquestions.org. It may affect other
distros for all I know, but only Mandrake of the ones I've got running.

A symptom is that nslookup from the shell is really quick, but host
resolution from the browser is really slow.

Does disabling IPv6 make a difference?
--
Mark South: World Citizen, Net Denizen

 
Reply With Quote
 
Andreas
Guest
Posts: n/a

 
      01-31-2005, 07:28 PM
> Does disabling IPv6 make a difference?

Yes, it does!
Thanks, for the hint. I experienced this behaviour both with SuSE and
Ubuntu, and disabling IPv6 really helped.
Andreas

 
Reply With Quote
 
Mark South
Guest
Posts: n/a

 
      01-31-2005, 07:51 PM
On Mon, 31 Jan 2005 12:28:57 -0800, Andreas wrote:

>> Does disabling IPv6 make a difference?

>
> Yes, it does!


Cool. Nothing works like disabling the latest technology :-)

> Thanks, for the hint. I experienced this behaviour both with SuSE and
> Ubuntu, and disabling IPv6 really helped.


I'm glad it worked for you. It drove me crazy when it happened to me, and
I was delighted when opjose on linuxquestions pointed out the solution.
--
Mark South: World Citizen, Net Denizen

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexplained Download Speed versus Upload Speed - Any thoughts Appreciated crbutler01@yahoo.com Wireless Internet 9 12-30-2011 12:30 AM
Half speed wireless, full speed wired? ChasX Wireless Networks 1 08-26-2008 08:51 AM
Wired speed: excellent -- Wireless speed: like an 80s modem (tops). gabriel.salama@gmail.com Wireless Internet 0 10-07-2006 10:05 PM
Reported Wireless speed w/ repeater 7-9x Measured Speed Lance Wireless Networks 0 10-31-2004 08:31 PM
No DNS resolution Mike C Windows Networking 9 02-22-2004 09:06 PM



1 2 3 4 5 6 7 8 9 10 11