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

DNS order

Discussion in 'Tomato Firmware' started by pfoomer, Dec 6, 2008.

  1. pfoomer

    pfoomer LI Guru Member


    I am trying to determine the default order for DNS lookup, can anyone assist me?

    Is it


  2. nvtweak

    nvtweak LI Guru Member


    1) hosts files
    2) dns cache
    3) dns server (resolv)
  3. HennieM

    HennieM Network Guru Member

    Although not explicitly stated in http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html it seems like the order is local, less local, remote, i.e.

    hosts files (remember, there can be more than one)
    dhcp leases (which are probably in the DNS cache)
    DNS cache
    DNS remote server(s)

    except if you tell dnsmasq not to use hosts files, etc.
  4. pfoomer

    pfoomer LI Guru Member

    Thanks and more questions...


    Thanks to all who responded, the reason for the query was that for some reason local address's where not being resolved, initiating an external call.

    I even set up

    cp -f /etc/hosts.dnsmasq /etc/hosts

    in the startup to resolve this, with


    in the dns/dhcp for good measure.

    in addition my domain is set to

    (does it need a dot in front in the setup?)

    all my clients on the LAN are set with the same domain name, all their MAC addresses are registered to hardwired IP's in DHCP,
    is this all overkill?

    In addition the following rules to prevent external calling are set up

    #iptables -I FORWARD -d -j DROP
    iptables -I FORWARD -d -j DROP
    iptables -I FORWARD -d -j DROP
    iptables -I FORWARD -d -j DROP
    iptables -I FORWARD -d -j DROP

    Note 224 is commented out, because this prevents the one wireless system from printing!!, hardwired its ok it can see the printer as all the other lan clients do

    Allow Multicast is checked.

    Router is WRT54GL 1.1

    Tomato Firmware v1.22.8501
    Copyright (C) 2006-2008 Jonathan Zarate

    Addons by Victek@gmail.com
    - CPU Info | WAN Info | Extended Buttons/LED Script
    - P2P Obfuscation | Additional Skins
    - SpeedMod 8502
    - Bandwidth Limiter per IP/MAC
    - TCP Vegas
    - New Driver Version

    Built on Mon, 24 Nov 2008 11:32:36 +0100

    Any thoughts appreciated.


Share This Page