Results 1 to 3 of 3

Thread: DNS cache

  1. #1

    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.

  2. #2
    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

  3. #3
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •