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
This commit is contained in:
oblique 2014-09-09 23:13:39 +03:00
parent 5ff7503e01
commit 6c56e81148

View File

@ -728,7 +728,7 @@ else
DNSMASQ_BIND=bind-dynamic DNSMASQ_BIND=bind-dynamic
fi fi
cat << EOF > $CONFDIR/dnsmasq.conf cat << EOF > $CONFDIR/dnsmasq.conf
interface=${WIFI_IFACE} listen-address=${GATEWAY}
${DNSMASQ_BIND} ${DNSMASQ_BIND}
dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h
dhcp-option=option:router,${GATEWAY} dhcp-option=option:router,${GATEWAY}