I have several machine on my network. All linux ones work perfectly with pihole. The only one on W10 doesn't seem to use pihole as DNS server.
Some sites are blocked (not blocked when i use linux machine). Even some local website only accessible on my lan are blocked.
I've set the pihole IP as primary DNS in the settings of my ethernet connection, restart my machine, then it worked only for few minutes. After couple of minutes, the sites are being block again.
What are the websites being blocked? Can you see the sites in your PiHole query log being blocked?
You mention "local website only accessible on my lan are blocked." which would be odd if Pihole was blocking them unless you have set something within the blacklists, How do you access the local website via name or IP? What is the error the browser shows while attempting to access the website, DNS related?
Have you gone into your ethernet adapter IPv4 Properties and set your static Pihole Address there?
Since your debug log shows your network to have link-local IPv6 connectivity, the usual suspect would be an IPv6 by-pass via your router's IPv6 address.
The DNS server section of ipconfig /all should reveal which DNS server addresses your Win10 is using.
I suspect that IPv6 to belong to your router, and if so, your IPv6-capable clients may choose to use it at their own leisure, by-passing Pi-hole completely.
Check that IPv6 against IPv6 addresses of your Pi-hole host machine.
Those can be listed e.g. by
I've just checked and you're right. The ipv6 from my pihole machine isn't the one i saw in DNS Server section of ipconfig /all.
And i've double checked by going into my ISP router interface and i saw that the ipv6 there was exactly the same as the one of ipconfig /all.
So i guess i need to add also pihole ipv6 to my windows network configuration, to force windows to use this adress ? (actually i've already done it for ipv4)
That may solve your Windows PC issue, but you should be aware that other IPv6-capable clients would also be able to by-pass Pi-hole, and not all of them may allow you to configure an IPv6 DNS server address on device.
The correct way to address this would be to configure your router to advertise your Pi-hole machine's IPv6 address as local DNS server.
You'd have to consult your router's documentation sources on further details for its IPv6 configuration options.
If your router doesn't support configuring IPv6 DNS, you could consider disabling IPv6 altogether.
If your router doesn't support that either, your IPv6-capable clients will be able to bypass Pi-hole via IPv6, unless they can be manually configured to use Pi-hole's IPv6 instead.