I'm trying to setup a captive portal (catch-all HTTP server) on a Pi. I have configured the Edimax USB adapter with DHCPD and hostapd and that works perfectly. Client devices can connect and access the Pi's IP in their browser and load the target page. My goal is to get dnsmasq to direct all requests to the target landing page (192.168.1.5).
The following is my configuration: /etc/network/interfaces
auto lo iface lo inet loopback # auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet static address 192.168.1.185 netmask 255.255.255.0
interface=eth0 interface=lo interface=wlan0 address=/#/127.0.0.1
With the above configuration, pings to external domains and IP addresses still resolve to external networks whereas a replica of the above configuration on my local ubuntu 14.04 workstation redirect to 127.0.0.1 as expected. It appears the Pi is failing to route DNS via dnsmasq despite restarts, reloads, etc. Any suggestions, please?