Skip to content

Have customDNS mapping with foo.bar and conditional mapping with custom resolver for clients.foo.bar #1323

Answered by ThinkChaos
sn0opy asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah the issue here is you're wanting something that's incompatible with the resolver order, and that order is not configurable.
The issues you'd run into would mostly be use case dependent as you're changing the resolver priorities.

I haven't tested this, but I think you can use a rewrite as a workaround:

customDNS:
  rewrite:
    clients.foo.bar: skip-custom
  mapping:
    foo.bar: 192.168.0.7
    jupiter.foo.bar: 192.168.0.8

skip-custom doesn't have any special meaning, it's just not present in the mapping. So IIRC the customDNS resolver will just ignore requests for clients.foo.bar.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ThinkChaos
Comment options

Answer selected by sn0opy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants