AdguardTeam / AdguardTeam/AdGuardHome

Rewriting https queries with $dnsrewrite preserves the original cname result

Open
#7,562 0 comments 0 reactions 0 assignees View on GitHub
feature request
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.
![dns](https://github.com/user-attachments/assets/827554c9-763b-437b-945a-f03b931bdee2)

### 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.