Using 54GL/Tomato as cheapskates internal DNS server

Discussion in 'Tomato Firmware' started by jwdaigle, Jan 15, 2010.

  1. jwdaigle

    jwdaigle Addicted to LI Member

    Hi all-

    new to the forums, and new to Tomato. B4 I go on to my question, a HUGE piece of admiration to the Tomato guys. I thought "oh geez, Im gonna have to flash the firmware, and then fiddle with settings to get it working (again)". And cross my fingers I dont brick it.

    Wow. I flashed, took a few minutes, rebooted, came right up and TO MY AMAZEMENT, all my settings were carried over -> the router JUST WORKED!

    How many time can you say that about technology? :)

    Anyway, the reason I embarked on this journey is that I want to have a local DNS server, but dont want to run a full blown computer to do it. Oh ya, and I also want an access point. No need for NAT'ing on this appliance, got that covered by my sonicwall out front.

    I want the local DNS server to forward all requests for a certain domain to a certain (private but not on site) DNS server, and everything else to a public DNS server for generic internet lookups. I think I have read that this is possible, but having a hard time configuring dnsmasq to do it.

    I added a line to the DnsMasq custom configuration "S /", thinking for any lookup for, it would forward the request to But that does not seem to work.

    I also enabled "use internal DNS", "use received DNS with user enterred DNS", "intercept DNS port", and "use user enterred gateway if WAN is disabled".

    I have one of the internal ports (ie, not the wan port) plugged into my switch. The wan port is not connected to anything.

    wireless clients work well to the 54GL, so its set up properly. Full internet connectivity. They are not configured to use the 54GLs DNS services right now though.

    How can I get this working please?


  2. ladysman

    ladysman Network Guru Member

    Welcome Joe,

    I want to recommend that you do a thorough NVRAM erase after flashing to tomato.

    You actually don't want you settings coming back.:wink:
  3. mstombs

    mstombs Network Guru Member

    ditto re no resetting to defaults, and retyping data - can cause strange problems later!

    You need to use the long form of dnsmasq options in the conf file (which is created from the web gui box) without the "--"

    so suggest you try

  4. jwdaigle

    jwdaigle Addicted to LI Member

    Thank you to all that replied. I instead used "server=/", which now works exactly as I wanted it to.

    I also reset the box after the flash, and re-did the settings. I dont know if this was a necessary condition for it to work.

    quick followup: can I specify multiple DNS servers for How?

  5. Disman_ca

    Disman_ca Super Moderator Staff Member Member

    What do mean by multiple DNS servesr for Are you looking to resolve multpile domain nanmes t 1 IP?
  6. jwdaigle

    jwdaigle Addicted to LI Member

    Sorry - what I meant is that I have multiple DNS servers that serve this domain for fault tolerance. How can I have DNSMasq use other servers if the primary is down or inaccessible?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice