Need help with Dnsmasq

Discussion in 'Tomato Firmware' started by Danny3, Jun 7, 2013.

  1. Danny3

    Danny3 Reformed Router Member

    Hi guys,

    After trying more than one week I finally give up and ask you. But first, my configuration:
    Ruter: Asus RT-N16 with Tomato Firmware 1.28.0000 MIPSR2-109 K26 USB AIO, internet PPPoE, dynamic ip. I have a DDNS account ( linked to ruter's wan ip, something like: ''.

    Now dnsmasq custom config looks like:
    so when i type from lan with return localhosts address.

    What I'm trying to do is to make dnsmasq respond to requests from internet and for any subdomain of '' to respond with the ip address of ''. For example, if: is the ip address of '' (my WAN IP address) a request for '' or '' will give

    Here is almost the same thing I want:

    1) Dnsmasq doesn't respond to outside request (tested with dig and nslookup)
    Tried interface=ppp0 (PPPoE) and interface=vlan1 and (in dnsmasq config)
    iptables -I INPUT -i ppp0 -p udp --dport 53 -j ACCEPT (in firewall script)
    iptables -I INPUT -i vlan1 -p udp --dport 53 -j ACCEPT (in firewall script)
    Tried port forwarding.
    Nothing works :(
    2) How to config dnsmasq to respond for every subdomain with the ip address of domain (wan).

  2. PBandJ

    PBandJ Addicted to LI Member

    I think it'll be easier to find a Dynamic DNS provider that support wildcards. DynDNS used to for free. Now it's available for paying customers only.
    Maybe this one?
  3. koitsu

    koitsu Network Guru Member

    dnsmasq is not intended to be used as an authoritative nameserver/resolver, which is exactly what you're trying to do with it. Please don't/stop.

    Your Dynamic DNS provider can accomplish what you need -- many of them offer what's called wildcard support, as PBandJ mentions. That is the proper solution for this, not NS record glue for your DDNS FQDN and wonky/broken firewall rules (that almost indicate you don't understand how DNS works :) ).

    If doesn't provide wildcard support, change DDNS providers to one which does. As said, many support this.
  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