Rewrite DNS based on client address #5470
ishanjain28
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Currently Adguard home is setup to check the rewrites object, If an entry exists for a domain it'll return that instantly and not check any filters. The domain rewrite subsystem lacks a few feature, Specifically I can not use it to return different addresses based on source address.
A bit more information on my use case.
I have a jellyfin instance which has 5 interfaces attached to it and it listens on all 5 interfaces. When a DNS request comes in, I want to send that client the jellyfin address that's in that layer 2 network. This has considerable performance advantages because the traffic between jellyfin <-> client will go through the switch and never make it to the router.
The way I had set it up before was I added 5 entries in the
rewrites
object.jellyfin.x.y
resolved to,10.0.10.3,10.0.20.3,10.0.30.3,10.0.40.3,10.0.50.3
. Clients would start by connecting to the first address and move down the list and with firewall rules I only allowed a client to connect to the jellyfin interface that's in their vlan. (10.0.50.3
is fallback and used in some other scenarios).The down side of this approach is, It fills up my firewall logs. :/
The new approach I was trying to come up with was,
but in this setup, It sends
<jellyfin-address-for-that-vlan>,10.0.50.3
. i.e. 10.0.50.3 is not a fallback in case no other rules match and it always adds that address. :/Is there some way to maybe fix my filter? or is there any thing else I can do to fix this? thanks
Beta Was this translation helpful? Give feedback.
All reactions