My Xiaomi phone without a hostname should have no ads displayed. The query log should contain DNS requests.
Actual Behaviour:
My Xiaomi phone without a hostname displays ads and ignores Pi-Hole completely, even though I disabled the IPv6 interface on my OpenWrt router. The query log is not getting filled by that device. If I go to network the device is green and shows that it has received queries in the past. I followed the following tutorial to setup my Pi-Hole with my router: https://www.reddit.com/r/pihole/comments/av1qd4/setting_up_pihole_on_openwrt/
Debug Token:
e4hb5zfy3n
Configuration
Pi-Hole is setup as a DNS Forwarder only, DHCP server is the router. The DNS IP is a local IP address, which is also a login portal behind the router (also coming from the WAN interface). As in the tutorial the port 53 is being redirected to the Pi-Hole. I double-checked the IPs and interface names in the firewall rules. Maybe DNS-Over-HTTPS is being used? Other devices with hostnames show up in the queries correctly and block ads successfully.
UPDATE
Turning off conditional forwarding does not seem to help solve the issue.
Changing IP settings to static with the DNS server set does not remove ads, but makes it send out DNS request queries to Pi-Hole which are seen right after making setting changes.
When turning on the phone the queries to MIUI and android time servers are shown.
Thanks for replying. getprop net.dns1 returns fd74:9123:c63e::1, getprop net.dns2 returns my Pi-Hole internal IPv4 address, net.dns3 is empty. I turned off private DNS in the settings.
And check if you have IPv6 support upstream from your ISP:
If dont have IPv6 support upstream, try disabling anything IPv6 related on the router.
And renew DHCP lease on your phone by disconnecting/reconnecting WiFi.
And oc check the getprop commands again.