AdguardTeam / AdguardTeam/dnsproxy

dnsrewrite

Open
#487 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.3k
Forks
343
PR merge metrics
No merged PRs in 30d

Description

does dnsproxy provide dnswrite functions to agh?

https://adguard-dns.io/kb/general/dns-filtering-syntax/

specifically things like this:

```
$dnsrewrite=NOERROR;A;1.2.3.4
$dnsrewrite=NOERROR;AAAA;abcd::1234
$dnsrewrite=NOERROR;CNAME;example.net
$dnsrewrite=REFUSED;;
```

Is this, or something like this possible in dnsproxy?

Thank you in advance..

```
upstream:
- quic://dns.quad9.net
- h3://dns.quad9.net/dns-query

- |
[/netflix.com/nflxso.net/nflxext.com/nflxvideo.net/
youtube.com/googlevideo.com/ytimg.com/
akamai.net/akamaihd.net/edgecastcdn.net/
fastly.net/fastlylb.net/
cloudfront.net/
disneyplus.com/bamgrid.com/]quic://dns11.quad9.net
- |
[/netflix.com/nflxso.net/nflxext.com/nflxvideo.net/
youtube.com/googlevideo.com/ytimg.com/
akamai.net/akamaihd.net/edgecastcdn.net/
fastly.net/fastlylb.net/
cloudfront.net/
disneyplus.com/bamgrid.com/]h3://dns11.quad9.net/dns-query

bootstrap:
- tls://9.9.9.9
- tls://149.112.112.112

all-servers: true
fastest-addr: true
# dnssec: true

cache: true
cache-size: 10240 # 1MB cache for roughly 10,000+ records
cache-min-ttl: 90 # Minimum 10 mins in cache (overrides low TTL records)
cache-max-ttl: 2400 # 24 hour maximum
cache-optimistic: true # Serve expired records instantly while refreshing in background

listen-addrs:
- 0.0.0.0
listen-ports:
- 5358

udp-buf-size: 4096
output: ""
verbose: false
ipv6-disabled: yes
http3: yes
```

docker 0.81

Thank you in advance..

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.