[Nodogsplash] Redirect when there is no Internet connection.

Gui Iribarren gui at altermundi.net
Thu Jan 22 12:12:47 UTC 2015

On 22/01/15 03:57, Moritz Warning wrote:
> Yes, that is right.
> When there is no Internet connection, then there is no DNS.
> Th Browser fails to resolve the DNS record and won't make
> a http request.
> When there is no Internet connection, you could configure your
> DNS server to resolve everything to a specific IP address.

with dnsmasq (the stock openwrt dns server) that would be the
"--address" option

-A, --address=/<domain>/[domain/]<ipaddr>
    [...] Thus --address=/#/ will always return for any
query not answered from /etc/hosts or DHCP and not sent to an upstream
nameserver by a more specific --server directive.

so, try appending the following line to /etc/dnsmasq.conf and restart
the daemon:


something like

# echo "address=/#/" >> /etc/dnsmasq.conf
# /etc/init.d/dnsmasq restart

> Though, this is not really recommended. :>

why not? :)


More information about the Nodogsplash mailing list