Your DNSMasq might be causing the DNS from the pihole to be overlooked.
Try disabling DNSMasq by commenting out the line
You can comment it out by running the following line:
sudo bash -c 'sed -i "s/dns=/#dns=/" /etc/NetworkManager/NetworkManager.conf'
Then you can check if the change took effect:
:~$ cat /etc/NetworkManager/NetworkManager.conf
Then reboot the system for changes to take effect. After the reboot, check with
nslookup to see that DNSMasq no longer is serving DNS. If the
Server: line shows
127.0.1.1, that means that DNSMasq is still controlling DNS of the system.
:~$ nslookup google.com
As you can see, my router IP is
10.0.0.1 which means that DNS is controlled by my router instead of DNSMasq.
Hope this helps!