I have been using pi-hole for a while and I noticed that I still see ads embedded in apps.
but everything looks good in queries I don't see any strange website that is not blocked.
Therefore I used a firewall app in my android to see which website they are trying to access.
it showed that some apps connect to different IP addresses therefore they don't show up in pihole and can't be blocked.
but sometimes they did connect to website but they still didn't show up. one purticular example is:
That specific domain is: "egde-star-shv-01-fra3.facebook.com"
And you see it begins with ip address and ends with a facebook domain names.
But when I block this globally many of ads in many apps are gone.
But I don't see any request from my mobile to any domain related to facebook nor anything close to it.
I have to mention that I don't use facebook app itself nor messenger and I also blocked google DNS in my router.
So my question is, how to block this domain in pihole?
my second questions is if it's possible to block IP address even if pihole isn't not a firewall?
I have tried that but that didn't worked, sorry to not mention that in my first post.
Both of the DNS lookups are pointing at Pi-hole. I also tried to point my router DNS to pihole as well but still the same.
if it doesn't show up in queries list then it wouldn't be able to block it.
My phone is rootet and I use noroot firewall.
It's interesting that even Adaway doesn't block that.
Blocking "edge-star-shv-01-fra3.facebook.com" doesn't work. I blocked the ip address and it did work. I assume it's like blocking "Pi1" to block access to Pi:s Ip address. which dosen't work.
But thanks for help. I hope it will help others too. cheers
If blocking the IP address is the only way to block it, then Pi-hole won't be able to block it. Since Pi-hole acts as a DNS server, it only handles domain name resolution. Since the app appears to use an IP instead of domain, the request does not go through Pi-hole.
I just wanted to finish this by saying that blocking those IP will in fact remove ads from many apps but it will also prevent you from uploading photos and videos in facebook.
If you are already using NoRoot then just tag that custom filter Button from within the application you want to block that site from. you should be able to block it on a per application basis. A global filter would block it from all applications. You can also do the same thing from the global access log. The one thing to watch out for is that NoRoot only blocks IPv4 hosts.