Pi-hole is a DNS blackhole, that blocks ads & trackers by rejecting as the DNS server.
Mikrotik is a Latvian brand of routers, fancy and allows changes to configuration.
Pi-hole is named for usually being on a Raspberry Pi, and a router is only required if your ISP device doesn’t allow changing the DNS server.
Assuming you are starting with standard PC connected directly to ISP gateway.
Configure your devices to use the Pi-hole as their DNS server using:
│ IPv4: 192.168.88.252 │
│ IPv6: Not Configured │
│ │
│ If you set a new IP address, you should restart the Pi. │
│ │
│ View the web interface at http://pi.hole/admin or │
│ http://192.168.88.252/admin │
│ │
│ Your Admin Webpage login password is XyXyXyXy
Some additional fun Mikrotik Setup: auto update and then auto reboot, weekly
sudo nano /etc/hosts
update pihole
sudo pihole -up
Go here and change IP address and gateway to match starting points:
sudo nano /etc/network/interfaces
or use the config, but it was acting weird for me:
dietp-config
sudo nano /etc/dnsmasq.d/bypass.conf
## DOESNT WORK UNLESS PIHOLE IS DHCP SERVER
## pihole-FTL dnsmasq-test --to test settings
## service pihole-FTL restart --to reset pihole with ANY DNS/DHCP settings
## MAKE SURE THESE DEVICES ARE NOT LISTED IN STATIC IP FILE IN /etc/dnsmasq.d/*
## This will go straight to Googles DNS Servers.
dhcp-option=tag:googlesdns1,6,8.8.8.8
## Your Devices that go to Google DNS
dhcp-host=8C:04:BA:11:49:31,192.168.88.175,set:googlesdns1
dhcp-host=90:48:6C:FC:6E:DC,192.168.88.130,set:googlesdns1,RingDoor
When you make any changes within DNSMASQ - trigger a restart!:
service pihole-FTL restart
useful commands for testing/fixing/reviewing:
pihole-FTL dnsmasq-test
pihole -d | less
tail -f /var/log/pihole.log | grep DHCP