- Login to your pihole using SSH
- Create a new configuration file in /etc/dnsmasq.d/ folder (use
00-
prefix, for example00-wifiid.conf
- Insert
strict-order
and your captive portal's DNS server in the new file, for example when using this on wifi.id networks:
strict-order
server=/wifi.id/118.98.44.100
server=/iwifi.id/118.98.44.100
server=/connectivitycheck.gstatic.com/118.98.44.100