Score:0

NetworkManager Hotspot DHCP pihole

bm flag

Fresh installation of 21.04 Desktop on RaspberryPi. All works Out of the box. I can create a Hotspot. I install Pi-Hole which will provide DNS & DHCP services (unbound next when this problem solved). Cannot now create Hotspot that works. The Hotspot configuration file is created but no IP address is assigned to the wifi hardware, so the Hotspot doesn't function.

Investigation:

NetworkManager invoked to create the Hotspot. NetworkManager invokes dnsmasq (or what I assume is the cut down version mentioned in the NetworkManager man). This fails because pi-hole is listening port 53. I need NM to use pihole-FTL (that is the dns/dhcp server on pi-hole) but it appears from the manual that the valid entries for this configuration are "dhclient, dhcpcd, and internal" I can set a manual address to the wifi hardware and it seems to function but it gives that same address as the DNS to the connecting client and so the client has access to the local network but not internet. In this state the pihole dhcp also assigns an address to the local wifi hardware, but I have gone no further to investigate whether this is functional.

Ideally I need NetworkManager to use the pihole DHCP server rather than its internal dhcp server.

Any other way to make NM use a different dhcp server?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.