Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why is my name resolution so slow?

Reply
Thread Tools Display Modes

Why is my name resolution so slow?

 
 
park_
Guest
Posts: n/a

 
      11-24-2004, 11:17 PM
I know that things don't happen on their own, but this has been
happening on my system for just the past few days. I haven't done any
updates or installed any new software. My system is running Fedora 2. It
seems that name resolution is very slow for some reason. Here is a
capture using tethereal going to www.sun.com. It takes 20 seconds from
hitting enter at the browser to the first SYN packet. My system sends
the DNS request then ARPs for the router interface. Then it sends a DNS
query to the secondary DNS server. Then it gets a response from the
second server, but there is no resolution of IP address. It keeps
repeating these queries, but it's not until 15 seconds in that it gets
the IP for www.sun.com.

0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
www.sun.com
4.998479 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
Tell 192.168.20.5
4.999293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
00:00:21:4e:b9:0c
5.018201 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
www.sun.com
5.081567 216.142.229.66 -> 192.168.20.5 DNS Standard query response
5.081855 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
www.sun.com
10.081293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP Who has 192.168.20.5?
Tell 192.168.20.1
10.081314 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP 192.168.20.5 is at
00:0f:fe:01:35:5d
10.082120 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
www.sun.com
10.111810 216.142.229.66 -> 192.168.20.5 DNS Standard query response
10.112078 192.168.20.5 -> 216.140.16.151 DNS Standard query A www.sun.com
15.112058 192.168.20.5 -> 216.142.229.66 DNS Standard query A www.sun.com
15.790859 216.142.229.66 -> 192.168.20.5 DNS Standard query response A
209.249.116.195
15.791318 192.168.20.5 -> 216.140.16.151 DNS Standard query PTR
195.116.249.209.in-addr.arpa
20.791160 192.168.20.5 -> 216.142.229.66 DNS Standard query PTR
195.116.249.209.in-addr.arpa
20.823369 216.142.229.66 -> 192.168.20.5 DNS Standard query response
PTR 209.249.116.195.available
20.826312 192.168.20.5 -> 209.249.116.195 TCP 32858 > http [SYN] Seq=0
Ack=0 Win=5840 Len=0 MSS=1460 TSV=10066619 TSER=0 WS=0

A simple ping to www.sun.com is faster, but still takes 5 seconds until
the first ping:

0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query A www.sun.com
4.998443 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
Tell 192.168.20.5
4.999260 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
00:00:21:4e:b9:0c
5.012535 192.168.20.5 -> 216.142.229.66 DNS Standard query A www.sun.com
5.032877 216.142.229.66 -> 192.168.20.5 DNS Standard query response A
209.249.116.195
5.036084 192.168.20.5 -> 209.249.116.195 ICMP Echo (ping) request

The strange thing is that no other systems exhibit this behavior. In
fact, I am running Windows 2000 in a VMWare virtual machine on this same
system. Here is a capture from that virtual system going to Sun.com:

0.000000 192.168.20.104 -> 216.142.229.66 DNS Standard query A
www.sun.com
0.000886 192.168.20.104 -> 216.142.229.66 DNS Standard query A
www.sun.com
0.023886 216.142.229.66 -> 192.168.20.104 DNS Standard query response
A 209.249.116.195
0.027707 192.168.20.104 -> 209.249.116.195 TCP 1482 > http [SYN]
Seq=0 Ack=0 Win=64240 Len=0 MSS=1460

The DNS server answers the query in only a fraction of a second and
there is no repeating of queries.

Does anyone have an idea of why this is happening?
 
Reply With Quote
 
 
 
 
Matt
Guest
Posts: n/a

 
      11-25-2004, 07:30 AM
park_ wrote:

> I know that things don't happen on their own, but this has been
> happening on my system for just the past few days. I haven't done any
> updates or installed any new software. My system is running Fedora 2. It
> seems that name resolution is very slow for some reason. Here is a
> capture using tethereal going to www.sun.com. It takes 20 seconds from
> hitting enter at the browser to the first SYN packet. My system sends
> the DNS request then ARPs for the router interface. Then it sends a DNS
> query to the secondary DNS server. Then it gets a response from the
> second server, but there is no resolution of IP address. It keeps
> repeating these queries, but it's not until 15 seconds in that it gets
> the IP for www.sun.com.
>
> 0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 4.998479 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
> Tell 192.168.20.5
> 4.999293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
> 00:00:21:4e:b9:0c
> 5.018201 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com
> 5.081567 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> 5.081855 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 10.081293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP Who has 192.168.20.5?
> Tell 192.168.20.1
> 10.081314 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP 192.168.20.5 is at
> 00:0f:fe:01:35:5d
> 10.082120 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com
> 10.111810 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> 10.112078 192.168.20.5 -> 216.140.16.151 DNS Standard query A www.sun.com
> 15.112058 192.168.20.5 -> 216.142.229.66 DNS Standard query A www.sun.com
> 15.790859 216.142.229.66 -> 192.168.20.5 DNS Standard query response A
> 209.249.116.195
> 15.791318 192.168.20.5 -> 216.140.16.151 DNS Standard query PTR
> 195.116.249.209.in-addr.arpa
> 20.791160 192.168.20.5 -> 216.142.229.66 DNS Standard query PTR
> 195.116.249.209.in-addr.arpa
> 20.823369 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> PTR 209.249.116.195.available
> 20.826312 192.168.20.5 -> 209.249.116.195 TCP 32858 > http [SYN] Seq=0
> Ack=0 Win=5840 Len=0 MSS=1460 TSV=10066619 TSER=0 WS=0
>
> A simple ping to www.sun.com is faster, but still takes 5 seconds until
> the first ping:
>
> 0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query A www.sun.com
> 4.998443 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
> Tell 192.168.20.5
> 4.999260 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
> 00:00:21:4e:b9:0c
> 5.012535 192.168.20.5 -> 216.142.229.66 DNS Standard query A www.sun.com
> 5.032877 216.142.229.66 -> 192.168.20.5 DNS Standard query response A
> 209.249.116.195
> 5.036084 192.168.20.5 -> 209.249.116.195 ICMP Echo (ping) request
>
> The strange thing is that no other systems exhibit this behavior. In
> fact, I am running Windows 2000 in a VMWare virtual machine on this same
> system. Here is a capture from that virtual system going to Sun.com:
>
> 0.000000 192.168.20.104 -> 216.142.229.66 DNS Standard query A
> www.sun.com
> 0.000886 192.168.20.104 -> 216.142.229.66 DNS Standard query A
> www.sun.com
> 0.023886 216.142.229.66 -> 192.168.20.104 DNS Standard query response
> A 209.249.116.195
> 0.027707 192.168.20.104 -> 209.249.116.195 TCP 1482 > http [SYN] Seq=0
> Ack=0 Win=64240 Len=0 MSS=1460
>
> The DNS server answers the query in only a fraction of a second and
> there is no repeating of queries.
>
> Does anyone have an idea of why this is happening?


As a temporary fix, you may want to run a cache-only name server on you
LAN.
 
Reply With Quote
 
Philippe WEILL
Guest
Posts: n/a

 
      11-25-2004, 07:57 AM


park_ wrote:

> 0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 4.998479 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
> Tell 192.168.20.5
> 4.999293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
> 00:00:21:4e:b9:0c
> 5.018201 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com
> 5.081567 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> 5.081855 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 10.081293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP Who has 192.168.20.5?
> Tell 192.168.20.1
> 10.081314 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP 192.168.20.5 is at
> 00:0f:fe:01:35:5d
> 10.082120 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com



Perhaps you could try to disable IPV6 on your system if not used

add in /etc/modprobe.conf
alias net-pf-10 off
alias ipv6 off



--
Weill Philippe - Administrateur Systeme et Reseaux
 
Reply With Quote
 
Alex Harsch
Guest
Posts: n/a

 
      11-25-2004, 11:36 AM
park_ wrote:

> I know that things don't happen on their own, but this has been
> happening on my system for just the past few days. I haven't done any
> updates or installed any new software. My system is running Fedora 2. It
> seems that name resolution is very slow for some reason. Here is a
> capture using tethereal going to www.sun.com. It takes 20 seconds from
> hitting enter at the browser to the first SYN packet. My system sends
> the DNS request then ARPs for the router interface. Then it sends a DNS
> query to the secondary DNS server. Then it gets a response from the
> second server, but there is no resolution of IP address. It keeps
> repeating these queries, but it's not until 15 seconds in that it gets
> the IP for www.sun.com.
>
> 0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 4.998479 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has 192.168.20.1?
> Tell 192.168.20.5
> 4.999293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
> 00:00:21:4e:b9:0c
> 5.018201 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com
> 5.081567 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> 5.081855 192.168.20.5 -> 216.140.16.151 DNS Standard query AAAA
> www.sun.com
> 10.081293 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP Who has 192.168.20.5?
> Tell 192.168.20.1
> 10.081314 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP 192.168.20.5 is at
> 00:0f:fe:01:35:5d
> 10.082120 192.168.20.5 -> 216.142.229.66 DNS Standard query AAAA
> www.sun.com
> 10.111810 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> 10.112078 192.168.20.5 -> 216.140.16.151 DNS Standard query A
> www.sun.com 15.112058 192.168.20.5 -> 216.142.229.66 DNS Standard query
> A www.sun.com 15.790859 216.142.229.66 -> 192.168.20.5 DNS Standard
> query response A
> 209.249.116.195
> 15.791318 192.168.20.5 -> 216.140.16.151 DNS Standard query PTR
> 195.116.249.209.in-addr.arpa
> 20.791160 192.168.20.5 -> 216.142.229.66 DNS Standard query PTR
> 195.116.249.209.in-addr.arpa
> 20.823369 216.142.229.66 -> 192.168.20.5 DNS Standard query response
> PTR 209.249.116.195.available
> 20.826312 192.168.20.5 -> 209.249.116.195 TCP 32858 > http [SYN] Seq=0
> Ack=0 Win=5840 Len=0 MSS=1460 TSV=10066619 TSER=0 WS=0
>
> A simple ping to www.sun.com is faster, but still takes 5 seconds until
> the first ping:
>
> 0.000000 192.168.20.5 -> 216.140.16.151 DNS Standard query A
> www.sun.com 4.998443 00:0f:fe:01:35:5d -> SC&C_4e:b9:0c ARP Who has
> 192.168.20.1?
> Tell 192.168.20.5
> 4.999260 SC&C_4e:b9:0c -> 00:0f:fe:01:35:5d ARP 192.168.20.1 is at
> 00:00:21:4e:b9:0c
> 5.012535 192.168.20.5 -> 216.142.229.66 DNS Standard query A
> www.sun.com 5.032877 216.142.229.66 -> 192.168.20.5 DNS Standard query
> response A
> 209.249.116.195
> 5.036084 192.168.20.5 -> 209.249.116.195 ICMP Echo (ping) request
>
> The strange thing is that no other systems exhibit this behavior. In
> fact, I am running Windows 2000 in a VMWare virtual machine on this same
> system. Here is a capture from that virtual system going to Sun.com:
>
> 0.000000 192.168.20.104 -> 216.142.229.66 DNS Standard query A
> www.sun.com
> 0.000886 192.168.20.104 -> 216.142.229.66 DNS Standard query A
> www.sun.com
> 0.023886 216.142.229.66 -> 192.168.20.104 DNS Standard query response
> A 209.249.116.195
> 0.027707 192.168.20.104 -> 209.249.116.195 TCP 1482 > http [SYN]
> Seq=0 Ack=0 Win=64240 Len=0 MSS=1460
>
> The DNS server answers the query in only a fraction of a second and
> there is no repeating of queries.
>
> Does anyone have an idea of why this is happening?

Hi,

you Linux box queries the server 216.140.16.151 first. This server is no DNS
server (just ckecked it). I think it is not even up. Your virtual machine
queries the DNS server 216.142.229.66, which is a DNS server. Your Linux
box falls after a while also back to 216.142.229.66, but this is a waste of
time, of course. Please correct your /etc/resolf.conf.

Alex
 
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
Slow IPv6 name resolution Alexandru Burciu Windows Networking 0 09-12-2007 03:44 AM
Slow DNS resolution ryan@ryankaskel.com Linux Networking 5 05-17-2005 04:28 PM
Is SBC-Yahoo DNS resolution slow? Al. C Linux Networking 2 11-09-2004 02:00 AM
SuSE 8.0 and slow DNS resolution E Drake Linux Networking 31 07-14-2004 10:41 AM
Slow Name Resolution Chrisbo Windows Networking 1 06-07-2004 09:08 PM



1 2 3 4 5 6 7 8 9 10 11