AdguardTeam / AdguardTeam/AdGuardHome
Rewriting https queries with $dnsrewrite preserves the original cname result
- Dominant language
- TypeScript
- Stars
- 36.9k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
### Prerequisites
- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer
- [X] I have searched other issues and found no duplicates
- [X] I want to request a feature or enhancement and not ask a question
### The problem
A query for https records for rr5---sn-q4fl6nlz.googlevideo.com normally returns a https record 和 a cname record. I then rewrote the https record using this rule
`||googlevideo.com^$dnstype=HTTPS,dnsrewrite=NOERROR;HTTPS;1 . alpn=h2`
When you query the domain again there are only https records.

### Proposed solution
When rewriting the HTTPS record, if there is a CNAME record, please keep it.
### Alternatives considered and additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.