Using pihole in a LXC container in Proxmox. Web GUI comes up normally, pihole is connected to the internet. Have an AT&T router so I wanted to use pihole on device-by-device basis, since turning off DHCP server on router and enabling it in pihole did not work.
Actual Behaviour:
My OnePlus phone connects to Wi-Fi and internet with static IP settings, gateway being the router and DNS the IP address of the pihole. MacBook with the same settings connects to Wi-Fi but not internet. No devices show up as clients in pihole and there is a cross in the clients table in the "Uses Pi-hole" field.
Your debug log shows that Pi-hole is working normally, but has not received any queries from your network.
[2021-02-01 12:02:03.960 3622M] Imported 1 queries from the long-term database
[2021-02-01 12:02:03.960 3622M] -> Total DNS queries: 1
[2021-02-01 12:02:03.960 3622M] -> Cached DNS queries: 1
[2021-02-01 12:02:03.960 3622M] -> Forwarded DNS queries: 0
[2021-02-01 12:02:03.960 3622M] -> Blocked DNS queries: 0
[2021-02-01 12:02:03.960 3622M] -> Unknown DNS queries: 0
[2021-02-01 12:02:03.960 3622M] -> Unique domains: 1
[2021-02-01 12:02:03.960 3622M] -> Unique clients: 1
After you made that change, did you restart the router and renew DHCP leases on all clients? You have a configuration problem in the router settings most likely, and none of the DNS traffic is going to Pi-hole.
From the Macbook terminal (and not via ssh to Pi-hole), what is the output of the following:
Yeah, I set these on my macbook so I could access internet, I have tried the same without these DNS server and I can't connect then. Because my router is BGW210 from AT&T, it does not allow changing the DNS, which I assumed would be the issue for pihole not working.
If you can disable the DHCP server on that router, you can use Pi-hole as the system DHCP server. Even if you cannot, you can restrict the DHCP on the router to a single IP (the IP of Pi-hole) and then setup Pi-hole DHCP on a non-overlapping IP range.