1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

External DNS Cache

Discussion in 'DD-WRT Firmware' started by thedogcow, Jul 26, 2006.

  1. thedogcow

    thedogcow Network Guru Member

    Hi I am trying to get dd-wrt v23 to forward all dns requests to a BIND server running on my LAN. Currently I have checked "Use DNSMasq for DHCP" and entered the bind server ip into "local dns", and have also added the following 'Additional DNS Options' to DNS Masq:
    no-resolv
    server=192.168.1.22

    A lot of the time the requests are forwarded to the bind server but i am using realtime logging and it is not 100%. Am I going about this the wrong way? Please help me!
     
  2. thedogcow

    thedogcow Network Guru Member

    Ok so it seems after doing some googling that there are two solutions.

    1) Set the following options for DnsMasq:

    Code:
    strict-order
    cache-size=0
    This means that once settings your local dns server in the config page, your router will first query your local cache. If it is down, it will then revert to your ISP's dns. Always good to have redundancy! Also allows your local names to be resolved by the router since all queries still go through it.

    Client --> Router --> DNS Server

    2) Have not tested this, but setting the following DnsMasq switch should have a similar effect except local names will not be resolved as the dns ip is passed directly to the client, which also means no redundancy :(

    Code:
    dhcp-option=6,DNS_IP_HERE
    Info was found here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=1436&highlight=opendns

    Hope this is of use to somone else. I will keep testing and report and problems that I run into!
     

Share This Page