From db05508fe40e54b8b440aac4031d1a6fb4be1d1c Mon Sep 17 00:00:00 2001 From: Michael Steinberg Date: Wed, 4 Aug 2021 18:02:13 -0700 Subject: [PATCH] feat: add config to enable local dns on hotspot --- functions/autohotspot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/autohotspot b/functions/autohotspot index 20ed1c5..882d127 100644 --- a/functions/autohotspot +++ b/functions/autohotspot @@ -54,6 +54,9 @@ echo "bind-dynamic" >> /etc/dnsmasq.conf echo "server=8.8.8.8" >> /etc/dnsmasq.conf echo "domain-needed" >> /etc/dnsmasq.conf echo "bogus-priv" >> /etc/dnsmasq.conf +# these two lines make it so you can connect to your pi using piname.local +echo "domain=local" >> /etc/dnsmasq.conf +echo "local=/local/" >> /etc/dnsmasq.conf echo "dhcp-range=10.10.10.150,10.10.10.200,255.255.255.0,12h" >> /etc/dnsmasq.conf echo "#Set up redirect for email.com" >> /etc/dnsmasq.conf echo "dhcp-option=3,10.10.10.10" >> /etc/dnsmasq.conf