LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2003, 03:06 PM   #1
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Rep: Reputation: 31
Question takes a long delay to resolve name


Dear experts.

I have problem that my Linux box takes a quite long time to resolve an internet name for the first time. However, once the name is resolved, the next calling will be successfull without delay.

My Linux : Redhat 7.3
local DNS : chaching DNS server (as installation, I didn't change anything)
Main DNS : other DNS server on my network
Firewall : accept everything but log it for the test.

Some examples are here
(My IP is masked to 1.2.3.4, My main DNS is masked to 1.2.3.1):
=========================
# nslookup -sil www.altavista.com
;; connection timed out; no servers could be reached

# nslookup -sil www.altavista.com
;; connection timed out; no servers could be reached

# nslookup -sil www.altavista.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: www.altavista.com
Address: 209.73.164.91
=========================
# ping www.lycos.com
ping: unknown host www.lycos.com
# ping www.lycos.com
ping: unknown host www.lycos.com
# ping www.lycos.com
PING www.lycos.com.akadns.net (209.202.192.25) from 1.2.3.4 : 56(84) bytes of data.
64 bytes from www.lycos.com (209.202.192.25): icmp_seq=1 ttl=243 time=31 ms
========================

This is the firewall log during the failed tests
==============================
Mar 10 05:35:31 rob01 kernel: Firewall ACC IN= OUT=eth0 SRC=1.2.3.4 DST=1.2.3.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1068 DPT=53 LEN=40
Mar 10 05:35:36 rob01 kernel: Firewall ACC IN= OUT=eth0 SRC=1.2.3.4 DST=1.2.3.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1025 DPT=53 LEN=40
Mar 10 05:35:37 rob01 kernel: Firewall ACC IN= OUT=eth0 SRC=1.2.3.4 DST=1.2.3.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1068 DPT=53 LEN=40
==============================

Then this is the firewall log before the successfull test
==============================
Mar 10 05:35:42 rob01 kernel: Firewall ACC IN=eth0 OUT= SRC=1.2.3.1 DST=1.2.3.4 LEN=226 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=UDP SPT=53 DPT=1066 LEN=206
Mar 10 05:35:42 rob01 kernel: Firewall ACC IN= OUT=eth0 SRC=1.2.3.4 DST=1.2.3.1 LEN=254 TOS=0x00 PREC=0xC0 TTL=64 ID=49813 PROTO=ICMP TYPE=3 CODE=3 [SRC=134.115.8.33 DST=134.115.124.126 LEN=226 TOS=0x00 PREC=0x00 TTL=63 ID=0 DF PROTO=UDP SPT=53 DPT=1066 LEN=206 ]
===========================


Thank you for your help.

Last edited by Kocil; 03-09-2003 at 03:08 PM.
 
Old 03-10-2003, 04:24 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
type
cat /etc/resolv.conf
and test each listed nameserver by doing
dig www.some.domain.name @each.nameserver.ip.address

It may be that they don't work...
If there's nothing in the file, find them from your isp data and add them
nameserver 1.2.3.4

If they go back to your other LAN DNS server, get it some good external dns servers to use.

Last edited by peter_robb; 03-10-2003 at 04:26 AM.
 
Old 03-11-2003, 09:09 AM   #3
Kocil
Member
 
Registered: Feb 2003
Distribution: Redhat since 5.2, Slackware since 9.0, Vector since 4.0
Posts: 209

Original Poster
Rep: Reputation: 31
Cool, you are right.

I changed the main DNS to the secondary DNS server on our LAN and it's working fine now.

Sorry for this simple trouble.

Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Local caching only DNS takes a long time to resolve essdeeay Linux - Networking 4 08-20-2004 11:41 AM
NETGEAR network adapter takes ALOT to resolve host, Please HELP! phiqtion Linux - Networking 4 06-02-2004 06:31 AM
External Domain Resolve takes long LinuxLeo Linux - Networking 3 05-02-2004 11:03 PM
long delay dummyagain Programming 1 10-28-2003 04:49 AM
lilo long delay??? comtronics Debian 2 10-22-2003 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration