davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
320 stars 54 forks source link

Comitup DNS server #250

Closed Ataraxiall closed 2 weeks ago

Ataraxiall commented 2 weeks ago

Good morning,

I want to make it so that when a client is connected, all DNS requests are redirected to the localhost of comitup. This is because the Raspberry Pi does not have internet, and the iPhone disconnects from the access point after a few minutes due to the lack of internet. I want to try installing Nginx so that the requests checking for internet connectivity are resolved locally.

Here is the explanation for the Apple website configuration:

Is it possible to do this? In which file do I put the DNS resolutions? Thank you and best regards.

davesteele commented 2 weeks ago

Short answer - this goes in dns-connected.conf.

Comitup is managing dnsmasq, using one of two configuration files for HOTSPOT and CONNECTED modes. The other, dns-hotspot.conf, actually does what you want to do, with the "address" key. See the dnsmasq man page for details.

Ataraxiall commented 2 weeks ago

Thanks for the response.

I cant locate dnsmasq conf file (not in /etc).

Where i cand find it?

Thanks!