$dnsrewrite CNAMES should evaluate other custom rules

Author: trwy7Created Sep 28, 2026Updated Sep 28, 2026
Labelsfeature requestPriority: P4

Prerequisites

  • I have checked the Wiki and Discussions and found no answer

  • I have searched other issues and found no duplicates

  • I want to request a feature or enhancement and not ask a question

The problem

I have some custom rules like this:

pc1^$client=100.0.0.0/8,dnsrewrite=100.x.x.x
pc1^$client=10.0.0.0/8,dnsrewrite=10.0.x.x
service1.local^$dnsrewrite=pc1

Then through nslookup:

$ nslookup service1.local 10.0.0.x
Server:         10.0.0.x
Address:        10.0.0.x#53

Non-authoritative answer:
service1.local     canonical name = pc1.

AGH is only returning the cname record, and is not evaluating it against my other rules.

Proposed solution

CNAME rules should evaluate other rewrite rules or custom rules.

Alternatives considered and additional information

Having AGH query itself causes problems because it discards the client argument that I need for routing queries. I found an issue similar to this one, but with a solution that does not fix this.