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

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 (no-ip.com) linked to ruter's wan ip, something like: 'example.sytes.net'.

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

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

    Here is almost the same thing I want: http://www.linksysinfo.org/index.php?threads/make-dnsmasq-respond-to-internet-lookups.29638/

    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 Networkin' Nut 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? http://www.changeip.com/freedomains.asp
  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 no-ip.com doesn't provide wildcard support, change DDNS providers to one which does. As said, many support this.

Share This Page