I have set up a dnsmasq server on my computer and it works just fine for computers on LAN, but I can't access it externally. Every tutorial/documentation I have seen about dnsmasq seems to focus on internal connections, so I'm not even sure it can be done. I have tried to open port 53 on my router and simply use the external IP address of my computer as the DNS server for a computer in another network, but this doesn't work. Is my approach invalid or does dnsmasq not allow external connections?Here's the output of netstat -na | grep 53tcp        0      0 0.0.0.0:53        0.0.0.0:*     LISTENtcp6       0      0 :::53             :::*          LISTENudp        0      0 0.0.0.0:53        0.0.0.0:*udp        0      0 0.0.0.0:5353      0.0.0.0:*udp6       0      0 :::53             :::*udp6       0      0 :::5353           :::*unix  2      [ ACC ]     STREAM     LISTENING     12538    @/tmp/dbus-iOmdhtTj6junix  2      [ ACC ]     STREAM     LISTENING     18760    @aitor-com.canonical.Unity.Scope.files.T2838538736616unix  2      [ ACC ]     STREAM     LISTENING     13753    /run/user/1000/pulse/nativeunix  3      [ ]         STREAM     CONNECTED     12253    unix  3      [ ]         STREAM     CONNECTED     15381    unix  3      [ ]         STREAM     CONNECTED     21535    unix  3      [ ]         STREAM     CONNECTED     18753    unix  3      [ ]         STREAM     CONNECTED     13539    @/tmp/dbus-wMqgvvSqrLunix  3      [ ]         STREAM     CONNECTED     12953    unix  3      [ ]         STREAM     CONNECTED     18761    @aitor-com.canonical.Unity.Scope.files.T2838538736616unix  3      [ ]         STREAM     CONNECTED     13153    unix  3      [ ]         STREAM     CONNECTED     15382    unix  3      [ ]         STREAM     CONNECTED     15386    unix  3      [ ]         STREAM     CONNECTED     15388    unix  3      [ ]         STREAM     CONNECTED     15387    
Connect to dnsmasq server externally
dnsmasq
By default, dnsmasq is often configured to listen only to connections from the local machine. It can however be reached from anywhere if configured properly; for example it's commonly used on Linux-based network appliances like home routers where it replies to queries from the internal network.Edit the file dnsmasq.conf and make sure that the interfaces and listen-address are both set to include all the places you want to reach it from. If you want it to be available from the internet, then these two options must not be set. Also make sure that bind-interfaces is not set either.Note that in order for your computer to respond to DNS queries, it needs to have an IP address that's visible from the internet, i.e. not in a private IP address range.