Pihole works but most of the time doesn't work

These outputs show that the client is using Pi-hole for DNS resolution, and that Pi-hole is working properly.

Use these tools to determine the source of the ads you are seeing: