What's new

dnsmasq not working without internet connection

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

peter

New Around Here
I configured dnsmasq which resolves dns names as I want. Problem is occured when internet connection is not available. I cannot do ping or use nslookup from any computer in network.

Can not ping or nslookup computer in lan network :
Code:
C:\>nslookup myComputer
Server:  1.1.168.192.in-addr.arpa
Address:  192.168.1.1

Name:    myComputer.home
Addresses:  10.0.0.1
          10.0.0.1

Config files:
etc/hosts:
Code:
192.168.1.1 router
192.168.1.10 myComputer

dnsmasq.conf
Code:
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
domain=home
expand-hosts
bogus-priv
local=/home/
dhcp-range=lan,192.168.1.100,192.168.1.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,15,home
dhcp-option=lan,44,192.168.1.1
dhcp-option=lan,252,"\n"
dhcp-authoritative
read-ethers
addn-hosts=/etc/hosts.dnsmasq
address=/0.0.0.0/0.0.0.0
addn-hosts=/tmp/mnt/usb8GB/addblock/hosts.clean
 
No, I don't. I can not see option "WAN > Internet Connection > Redirect to error page" on my router page.

Firmware:378.55 (AC68U)
 
Try setting it to No/Never/Disabled (whatever the exact option is). It probably won't make a difference but it's worth a go.
 
Try setting it to No/Never/Disabled (whatever the exact option is). It probably won't make a difference but it's worth a go.

Perfect clue. After set option to "No", dnsmasq work perfectly again. Thanks for help ;)

Any explanation how "Enable WAN down browser redirect notice" works? It is default set to YES, but redirect doesn't working and damage my dnsmasg settings.
 
That option set iptables rules that redirects all port 80 (http) and port 53 (dns) requests to the internal router webserver. If you have a browser open, you'll get a web page telling you that your WAN connection, modem Ethernet link and a few other conditions may be down.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top