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

TomatoUSB needs to advertise a DNS server to clients but use the ISP provided ones

Discussion in 'Tomato Firmware' started by darksky, Nov 3, 2017.

  1. darksky

    darksky Networkin' Nut Member

    I have a pihole box on my LAN and have LEDE (based on OpenWRT) configured to use it to simply advertise the pihole IP to DHCP clients but still use my ISP DNS servers in the router. I just have pihole setup to use the router as its sole DNS.

    How can I accomplish this in TomatoUSB?

    On LEDE:
    Network>Interfaces>LAN>edit>DHCP Server>Advanced>DHCP Options: **6,10.9.8.187**

    On pihole:
    Code:
        /etc/dnsmasq.d/01-pihole.conf
        addn-hosts=/etc/pihole/gravity.list
        addn-hosts=/etc/pihole/local.list
        addn-hosts=/etc/pihole/black.list
        localise-queries
        no-resolv
        cache-size=10000
        log-queries
        log-facility=/run/log/pihole/pihole.log
        local-ttl=300
        log-async
        server=192.168.1.1
        interface=eth0
    This setup works properly to:

    1) Make new DHCP clients use pihole as their DNS
    2) Block ads via pihole
    3) Allow for local LAN ssh connections or ping command via the advertised hostname of that device
     
  2. darksky

    darksky Networkin' Nut Member

    I answered my own question. The best solution for TomatoUSB is to simply use the following under Advanced>DHCP/DNS>Dnsmasq Custom configuration:
    Code:
    dhcp-option=6,192.168.1.250
    Do NOT change Basic>Network>Static DNS (unless you want to use custom DNS entries).
    Do NOT uncheck Advanced>DHCP/DNS>Use internal DNS.
     
    Last edited: Nov 4, 2017

Share This Page