LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2005, 05:38 AM   #1
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Rep: Reputation: 30
Is there a problem in my caching only name server


Hello everybody,
I have a FC3.
To increase my surfing speed (by that iota) I have configured a caching only name server - named.
When from the console I give dig "hotmail.com" I find that the query time is around 1500 ms for the first attempt. In subsequent attempts the hotmail.com is resolved in 2 ms. Indicating that the name server is working ok.
But say I start my machine, connect to internet, access hotmail.com through browser (mozilla etc). Naturally I expect the the caching server to cache the ip address of hotmail.com. Ok, now I give command "dig hotmail.com" and I find that the query time is around 600 ms, whereas it should be of the order of 2ms. Now all subsequent digs are returned in 2 ms. It gives an indication that the caching server caches the ip addresses only if the dig is used, and not when the browser is used to access the site !!

Any explanation ?
Anybody ?

Thanks in advance.


Prabhat Soni
 
Old 02-22-2005, 06:47 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Check if name server caching daemon (nscd) is running or not. If not then start it.

On RH/Fedora :

chkconfig nscd on
service nscd restart
 
Old 02-22-2005, 11:18 AM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 247

Rep: Reputation: 31
Is your locas nameserver at the top of the list in /etc/resolv.conf?
 
Old 02-23-2005, 02:43 AM   #4
prabhatsoni
Member
 
Registered: Oct 2004
Location: India
Distribution: FC 12
Posts: 233

Original Poster
Rep: Reputation: 30
Hello Linuxxed and Camelrider,

LInuxxed: Then namer server "named" is already running. I am not sure wether now nscd is also required to be run. Please confirm/guide.

Camelrider: The local name server - in the form the entry " nameserver 127.0.0.1" is at the top in the /etc/resolv.conf. IN fact the dig command states the name of this name server in the query output.

Thanks nevertheless.
Waiting !!


Prabhat Soni
 
  


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
Caching DNS server error (lame server resolving) Iggyboo Linux - Networking 1 02-24-2005 03:43 AM
Caching FTP server dlublink SUSE / openSUSE 0 01-04-2005 12:10 PM
DNS Caching Server Itsu Linux - Networking 2 10-06-2004 11:49 PM
Caching Proxy Server TechnoBod Linux - Networking 2 10-22-2003 12:21 PM
No IP and Caching DNS server fmertus Linux - Networking 2 06-27-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration