Replies: 2 comments 2 replies
-
I dont think it's easily possible to forward DNS requests while preserving the client IP. It would in theory be possible using the Proxy protocol, which would require both gravity to support sending requests with it and pihole/blocky to receive requests with it. The blocky zone handler runs blocky as a library within gravity, so you don't need a separate blocky container. This also means that you get correct logs and metrics with client IPs etc. You can simply add the blocky handler as is in the documentation and it'll enable ad-blocking on the specified zone. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm using gravity in my homelab primarily as an authoritative dns-server with corresponding DHCP server across multiple subnets, even clustered. However I am confused about the Blocky integration for ad-blocking and how to set this up.
Currently for ad-blocking I have pihole which I forward all the dns requests to from gravity, but in pihole I only see gravities ip-address. Initially I was looking for a way to forward a dns request with source ip to pihole, is this possible?
Second I also want to move to Blocky instead of pihole so I can have both dns/dhcp/ad-blocking clustered. However I'm confused on how and where to configure Blocky:
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions