Results 1 to 3 of 3
Thread: DNS cache
-
11-16-2005, 09:18 PM #1WHT Addict
- Join Date
- Aug 2001
- Posts
- 123
DNS cache
I run a script that uses a lot of gethostbyname() calls. I've profiled the application and found that gethostbyname can take quite a long time. There are a few programs on freshmeat that cache DNS but I wanted to get some input on what everyone else uses.
-
11-16-2005, 09:53 PM #2Hosting provider
- Join Date
- May 2002
- Location
- Moscow
- Posts
- 1,602
if you have runned nameservers on your server you already have a local dns cache. you only may tuning it per your requirements. if you use extermal nameservers you may setup local nameservers. as minimum bind allow you caching all request. i am not use this for myself so can't say anymore, but you may read manual or short description in /etc/named.conf
TK Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR
-
11-17-2005, 07:42 PM #3Newbie
- Join Date
- Nov 2005
- Location
- Fort Worth, TX
- Posts
- 16
Windows server already has a local dns cache. If you're running on linux/*bsd, then I'd suggest dnscache, which is part of the djbdns suite. The nice thing about dnscache is that it is lightweight, as you don't have to run a fully-recursive DNS server. You can find more information at http://tinydns.org/