AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.36k stars 1.82k forks source link

OpenWRT v0.107.46 aarch64 dnsrewrite not working? #7173

Closed bcookatpcsd closed 1 month ago

bcookatpcsd commented 2 months ago

Prerequisites

Platform (OS and CPU architecture)

Custom (please mention in the description)

Installation

Other (please mention in the description)

Setup

Other (please mention in the description)

AdGuard Home version

107.46

Action

root@GL-MT3000:/usr/bin# drill -Q -p 3053 -t txt example.com  @127.0.0.1
"hello_world"
root@GL-MT3000:/usr/bin# drill -Q -p 3053 _svctype._tcp.example.com  @127.0.0.1
root@GL-MT3000:/usr/bin#

image

||lb._dns-sd._udp.0.8.168.192.in-addr.arpa.^$dnsrewrite=NOERROR;PTR;dev.null.
||4.3.2.1.in-addr.arpa^$dnsrewrite=NOERROR;PTR;example.net.
||_svctype._tcp.example.com^$dnsrewrite=NOERROR;SRV;10 60 8080 example.com
||example.com^$dnsrewrite=NOERROR;TXT;hello_world

I was trying to rewrite the dns-sd ptr/srv entries

(we're on vacation and all the friends of the kids have Macs.. )

root@GL-MT3000:/usr/bin# time drill -Q -p 3053 -t ptr lb._dns-sd._udp.0.8.168.192.in-addr.arpa @127.0.0.1
real    0m 2.02s
user    0m 0.01s
sys     0m 0.00s
root@GL-MT3000:/usr/bin# time drill -Q -p 3053 -t ptr 4.3.2.1.in-addr.arpa @127.0.0.1
example.net.
real    0m 0.02s
user    0m 0.01s
sys     0m 0.00s

image

Expected result

Is there something in place to filter/capture the:

b._dns-sd._udp.<domain>.
db._dns-sd._udp.<domain>.
r._dns-sd._udp.<domain>.
dr._dns-sd._udp.<domain>.
lb._dns-sd._udp.<domain>.

Requests?

Actual result

I think I have the syntax correct.. but not the result I was expecting..

Additional information and/or screenshots

If I could upgrade the binary I would have done that first.. GLiNet device running OpenWRT (GL-MT3000 travel router..)

bcookatpcsd commented 2 months ago
||lb._dns-sd._udp.0.8.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||lb._dns-sd._udp.0.8.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||lb._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null
||dev.null^$dnsrewrite=NOERROR;A;0.0.0.0

This seems to work as desired..

bcookatpcsd commented 2 months ago
||b._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;TXT;'RFC6763-pg27-list of domains recommended for browsing'
||b._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||b._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||b._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null

||db._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;TXT;'RFC6763-pg27-single recommended default domain for browsing'
||db._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||db._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||db._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null

||r._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;TXT;'RFC6763-pg27-registering services using dynamic update'
||r._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||r._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||r._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null

||dr._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;TXT;'RFC6763-pg27-single recommeded default domain for registering services'
||dr._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||dr._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||dr._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null

||lb._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;TXT;'RFC6763-pg27-legacy browsing'
||lb._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;SRV;0 0 0 dev.null
||lb._dns-sd._udp.0.88.168.192.in-addr.arpa^$dnsrewrite=NOERROR;PTR;dev.null
||lb._dns-sd._udp.lan^$dnsrewrite=NOERROR;PTR;dev.null

||dev.null^$dnsrewrite=NOERROR;A;0.0.0.0
||dev.null^$dnsrewrite=NOERROR;TXT;'RFC2782-pg7-no other services are supported'