I just followed the tutorial here for creating a bridged wireless access point with my Raspberry Pi 4. Now what I'm trying to do is ensure that any device connected to the Pi's network gets specific DNS records. For example,
example.com could re-route to the Pi's local IP address
192.168.1.2 (sort of like a captive portal, but for specific websites).
What I already tried:
I've already installed Dnsmasq on the Pi, so when I use
dig example.com it returns
192.168.1.2. However, this only works from the Pi's perspective, and if I connect to its network from another device and run
dig example.com, it returns the real IP address.
How can I make DNS queries from devices connected to the Pi's network follow its DNS records? I'd prefer not to configure the WiFi network settings to specifically point to the Pi as a DNS server, but when I tried, even that didn't work.