From 6c56e81148c469d8c5495a3ae0fa53b80c9885b8 Mon Sep 17 00:00:00 2001 From: oblique Date: Tue, 9 Sep 2014 23:13:39 +0300 Subject: [PATCH] Specify listen-address in dnsmasq instead of listen-interface Ubuntu has a bit different setup than other distributions and because of this dnsmasq was failing to retrieve the results of a DNS lookup. This can be fixed if we specify that the listen-address is the gateway instead of binding all the addresses of the WIFI_IFACE. Fix #46 --- create_ap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_ap b/create_ap index 892c0ba..bceb87d 100755 --- a/create_ap +++ b/create_ap @@ -728,7 +728,7 @@ else DNSMASQ_BIND=bind-dynamic fi cat << EOF > $CONFDIR/dnsmasq.conf -interface=${WIFI_IFACE} +listen-address=${GATEWAY} ${DNSMASQ_BIND} dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h dhcp-option=option:router,${GATEWAY}