Install: migration from dnsmasq

My RaspberryPi is the router on my network; it has a main uplink to the internet and a failover.

It runs a wifi acccess point, originally with hostapd but now with NetworkManager, and dndmasq.

How do I switch to pihole?

Initial guess:

(1) install pihole

(2) sudo apt remove dnsmasq

(3) something in pihole to do with dnsmasq config for mapping MAC addresses to static IPs.

How does that sound?

How likely am I to lose DNS?

If you do it right I don't see the issue to be honest :

  • Your WAN is always your WAN with it's own DNS Servers configured.
  • Your WLAN/LAN side will always have it's own IP Address.
  • You can use Public DNS Servers for DNS Resolving if needed...
  • The PC/Laptop you are working with can have a Static IP Address configured so it won't need DHCP at all.
    Or you can configure a very long DHCP Lease time! Whatever works! :grimacing:

In the end Pi-Hole's FTLDNS Engine will replace DNSmasqd and everything will keep working just fine! :+1::+1:

Good luck! :wink:

P.S. : Make sure Pi-Hole's webGUI ports 80 and 443 are not reachable via WAN !!
Either Firewall them or configure the Interface to which Pi-Hole binds correctly or just apply both ofcourse!

Ta :slight_smile:

Here goes...

Installed. Lost DNS.

Had a look around the web interface. Not possible to assign IP addresses by MAC.

Just: WTF? :man_shrugging:

I seem to recall selecting the first one in the install script.

Why are there four checkboxes on each row?

Is that none of these are checked is why there is no DNS?

This seems to be completely broken.

The table at the top seems to be trying to show the data entered at the bottom but doesn't understand it.

Your lines are not matching the format as illustrated by the example - they are missing a comma after the MAC.

Your lines are missing all the commas between each field.

This is wrong:
00:11:22:33:44:55 192.168.0.1 hostname infinite

Use commas:
00:11:22:33:44:55,192.168.0.1,hostname,infinite

Probably. We can't be sure what the issue is without seeing your configuration.

Please generate a debug log (sudo pihole -d), answer "Y" when asked to upload the file. This will generate and show you a Token. Copy and paste here only the token.

I would skip those anyway and go for unbound - Pi-hole documentation immediately :smiling_face_with_sunglasses::grimacing::+1::+1: