Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Why is my name resolution so slow?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2004, 12:17 AM
Default Why is my name resolution so slow?



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?


park_
Reply With Quote
  #2  
Old 11-25-2004, 08:30 AM
Matt
Guest
 
Posts: n/a
Default Re: Why is my name resolution so slow?

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
  #3  
Old 11-25-2004, 08:57 AM
Philippe WEILL
Guest
 
Posts: n/a
Default Re: Why is my name resolution so slow?



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
  #4  
Old 11-25-2004, 12:36 PM
Alex Harsch
Guest
 
Posts: n/a
Default Re: Why is my name resolution so slow?

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

Tags
resolution, slow

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
Forum Jump


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.