Squid_dns_cache


Results 1 to 4 of 4

Thread: Squid_dns_cache

  1. #1
    Join Date
    May 2009
    Posts
    9

    Squid_dns_cache

    I have set up a gateway machine in debian lenny

    internet is shared to the localnetwork by using squid as proxy server
    Can I improve the performance if I set up this machine as DNS cache server?

    What is the result if I set this machine as Primary DNS?
    Pls tell me the process happening

  2. #2
    Join Date
    Sep 1999
    Posts
    3,202
    What distribution are you using? Most will automatically set up a caching-only DNS server if you install the bind (or bind9) package. Set this machines IP to be the DNS server (for dhcp or manually, depending on your network). The first time a request is made, your box will do a full DNS lookup and return the result to the client. Any requests for the same domain name/host name within a relatively short amount of time (a few minutes, maybe more depending on TTL settings on the domain you are asking about) are served up out of the cache, almost instantly.

    When my students do this as a lab exercise, a request from us here in Fl. to sony.co.jp or theregister.co.uk takes about 2 seconds on the first request, subsequent ones are instant.

  3. #3
    Join Date
    May 2009
    Posts
    9
    Quote Originally Posted by ph34r View Post
    What distribution are you using?
    Debian lenny

    and plan to install bind9

    But debian installs in default locations (Not in chroot jails)

    Ok I got the answer.

    One more question. Can I use this machine as local DNS server also?

    i.e., it resolves station1.localdomain to local ips like 192.168.0.5 as well as resolving www.google.com?

  4. #4
    Join Date
    Sep 1999
    Posts
    3,202
    Yup, you just need to create appropriate zone files for your local domain

Posting Permissions

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