惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
A
About on SuperTechFans
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
博客园 - Franky
B
Blog RSS Feed
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research

dnsmasq-discuss

[Dnsmasq-discuss] Announce: dnsmasq-2.92rc2 Re: [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback [Dnsmasq-discuss] patch: block-file/allow-file - for review/feedback Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time [Dnsmasq-discuss] NFTsets and hosts-files [Dnsmasq-discuss] [PATCH] Allow expired RRSIGs when stale caching is enabled [Dnsmasq-discuss] [PATCH] Fix local host records being overridden by upstream NXDOMAIN [Dnsmasq-discuss] [PATCH] Fix arguments order for chaos subdomain check Re: [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Malformed NSEC/NSEC3 Can Hang dnsmasq [Dnsmasq-discuss] Malformed RRSIG Can Crash dnsmasq [Dnsmasq-discuss] Security - IMPORTANT Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests [Dnsmasq-discuss] Issue with circuit-id matching on dhcp requests Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] dnssec problem here and now [Dnsmasq-discuss] dnssec problem here and now Re: [Dnsmasq-discuss] server= with interface parameter changes behavior over time Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] bpf.c: fix memory leak in arp_enumerate() on BSD Re: [Dnsmasq-discuss] [PATCH] Preserve existing log file permissions when adding group-write bit. [Dnsmasq-discuss] server= with interface parameter changes behavior over time
[Dnsmasq-discuss] filter-rr does not work as documentatio...
gresser · 2026-06-23 · via dnsmasq-discuss
https://dnsmasq.org/docs/dnsmasq-man.html 's "filter-rr" section says 2
things:

1. "Remove records of the specified type(s) from answers."
2. "filter-rr=ANY has a special meaning: it filters replies to queries
for type ANY. Everything other than A, AAAA, MX and CNAME records are
removed."

Well, both behavior described in documentation does not appear working.


> "Remove records of the specified type(s) from answers."

"PTR" is not filtered.
I added "filter-rr=TXT,MX,HTTPS,SRV,PTR" and restarted dnsmasq.

- "TXT" requests still got send but correctly removed (EDE: 17
(Filtered))
query[TXT] eicar.org from 127.0.0.1
forwarded eicar.org to 8.8.8.8#53

- BUT, "PTR" doesn't get filtered by dnsmasq.
ANSWER SECTION: <-- no EDE Filtered


> filter-rr=ANY

I was expecting "Everything other than A, AAAA, MX and CNAME records are
removed" like you said in documentation.

- "dig eicar.org MX" returns (expected as described)
eicar.org.              86400   IN      MX      10
mail017.webhosting.manitu.net.
- Type TXT: "dig github.org TXT" returns
github.com.             3600    IN      TXT    
"docusign=087098e3-3d46-47b7-9b4e-8a23028154cd"
- Type PTR: "dig 1.1.1.1.in-addr.arpa" also returned answer.

> Conclusion

Why I can't block PTR, and why ANY doesn't working as advertised?

# dpkg --list|grep dnsmasq
ii  dnsmasq                               2.91-1+deb13u1                
      all          Small caching DNS proxy and DHCP/TFTP server - system
daemon
ii  dnsmasq-base                          2.91-1+deb13u1                
      amd64        Small caching DNS proxy and DHCP/TFTP server -
executable

_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss