LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-23-2003, 04:05 AM   #1
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
slow DNS lookup


I have a number of PCs connected to the internet via DSL router. They are all set up with static addresses in the 192.168.0.0 network with the router as the gateway.
The problem I'm having is that on the Linux boxes (SuSE 8.2) the DNS lookup is very slow compared to the Windows boxes... e.g. a Windows lookup is almost instantaneous, whereas a Linux lookup can take upwards of 20 seconds. Obviously, this isn't doing my case for switching completely to Linux any favours.

Where should I be looking to sort this out?
 
Old 07-23-2003, 06:57 AM   #2
/su
Member
 
Registered: Jun 2003
Location: Belgium
Distribution: Debian unstable (really?)
Posts: 43

Rep: Reputation: 15
Are You sure that your primary name server is set to your ISP dns serve and not your router?
 
Old 07-23-2003, 07:25 AM   #3
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
If you don't know, your nameserver(s) are set in the file /etc/resolv.conf. It is always a good idea to have multiple nameservers, preferably choose ones close to you (route wise, not as the crow flies).
 
Old 07-24-2003, 09:18 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Original Poster
Rep: Reputation: 48
/etc/hosts reads:

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

192.168.1.36 kaltel_dev.local kaltel_dev
192.168.1.52 testkiosk.local testkiosk
192.168.1.50 penguin.local penguin


/etc/resolv.conf reads:

nameserver 159.134.248.17
nameserver 159.134.237.6

which is the same as my windows box.


/etc/host.conf reads:

order hosts, bind
multi on

(I've tried switching multi off, but no change)


/etc/nsswitch.conf reads:

passwd: compat
group: compat

hosts: dns files
networks: dns files

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files

bootparams: files
automount: files nis
aliases: files

(hosts and networks had files and dns in the opposite order, changing to the current config made no difference)

any other files I should check?
 
Old 07-28-2003, 05:02 AM   #5
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Original Poster
Rep: Reputation: 48
after a bit of a sniff with ethereal, it looks like IPv6 translation was the culprit... switch it off and lookups are instantaneous
 
Old 08-17-2003, 12:42 AM   #6
GoblinX
LQ Newbie
 
Registered: Aug 2003
Distribution: Freebsd 4.8 Slackware
Posts: 2

Rep: Reputation: 0
I turned of IPv6 in /etc/rc.conf (FreeBSD) but dns lookups are still painfully slow. what else could i do?

my windows boxes look up instantly. I am behind a router.
I use freebsd 4.8
 
  


Reply



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
Webpage Browsing DNS lookup SLOW (ongoing Suse prob) dohanc SUSE / openSUSE 21 08-16-2005 11:11 PM
Slow DNS Lookup with SuSE 9.3 hera SUSE / openSUSE 14 07-26-2005 07:25 PM
Slow DNS lookup sendas4 Linux - Networking 1 07-05-2005 12:14 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
Slow DNS lookup sanjeevdas Linux - Networking 3 03-26-2004 01:19 AM

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

All times are GMT -5. The time now is 11:25 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