Egde-star-shv-01-fra3.facebook.com

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?

Try blocking those domains via the web interface:

edge-star-shv-01-fra3.facebook.com
edge-star-shv-01-frt3.facebook.com

Also check what DNS server your phone is using, just to make sure that all DNS lookups are going through Pi-hole.
You can only block domains with DNS.

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.

When you blocked them through Pi-hole, does pinging them via the Pi-hole's terminal return the Pi-hole's IP address? Try:

nslookup edge-star-shv-01-fra3.facebook.com

on the Pi-hole after blocking the domain.

Server: 127.0.0.1
Address: 127.0.0.1#53

Name: edge-star-shv-01-fra3.facebook.com
Address: 192.168.1.141

This domain doesn't even show up in OpenDNS Domain queries.

One of the apps with this issue is MX player on android.

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.

So I give up on this :slight_smile:

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.