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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园_首页
WordPress大学
WordPress大学
罗磊的独立博客
小众软件
小众软件
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
The Cloudflare Blog
GbyAI
GbyAI
C
Check Point Blog
腾讯CDC
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
博客园 - 聂微东
IT之家
IT之家
雷峰网
雷峰网
H
Help Net Security
博客园 - 叶小钗
美团技术团队
D
DataBreaches.Net

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] server priority clarification after e86...
dave14305 via Dnsmasq-discuss · 2026-04-22 · via dnsmasq-discuss
Since v2.92test5, commit e86d53c ("Fix some edge cases wth domains and 
--address and --server.") clarifies the priority order of competing address and 
server options for the same domain:

--address with a IPv4 or IPv6 address (as long as the query matches the type)
--address with # for all-zeros, as long as the query is A or AAAA)
--address with no address, which returns NXDOMAIN or NOERROR for all types.
--server with address set to # to use the unqualified servers.
--server with matching domain.
--server without domain or from /etc/resolv.conf.

In light of this priority, I am seeing unexpected behavior when using server 
and local for adblocking with whitelisting. The local entry would be part of a 
downloaded adblocking list and the server entry would be a local whitelisting 
attempt.

Example:
server=/googleads.g.doubleclick.com/#
local=/googleads.g.doubleclick.com/

With this config, I would expect a query for googleads.g.doubleclick.com to be 
allowed since --server with # should take priority, but instead it is blocked. 
Example is from April 9 while I waited to be approved for the mailing list.

# dig googleads.g.doubleclick.com. @127.0.0.1

; <<>> DiG 9.20.18 <<>> googleads.g.doubleclick.com. @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 19013
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;googleads.g.doubleclick.com.   IN      A

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Thu Apr 09 14:48:52 EDT 2026
;; MSG SIZE  rcvd: 56


Apr  9 14:41:38 dnsmasq[7442]: started, version 2.93-test2 cachesize 1500
Apr  9 14:41:38 dnsmasq[7442]: asynchronous logging enabled, queue
limit is 5 messages
Apr  9 14:41:38 dnsmasq-dhcp[7442]: DHCP, IP range 192.168.50.2 --
192.168.50.254, lease time 1d
Apr  9 14:41:38 dnsmasq[7442]: using only locally-known addresses for
googleads.g.doubleclick.com
Apr  9 14:41:38 dnsmasq[7442]: using standard nameservers for
googleads.g.doubleclick.com
Apr  9 14:41:38 dnsmasq[7442]: read /etc/hosts - 22 names
Apr  9 14:41:38 dnsmasq[7442]: read /etc/hosts - 22 names
Apr  9 14:41:38 dnsmasq[7442]: using nameserver 192.168.1.1#53
Apr  9 14:41:38 dnsmasq[7442]: using nameserver 192.168.1.1#53 for
domain home.arpa
Apr  9 14:41:38 dnsmasq[7442]: using only locally-known addresses for
googleads.g.doubleclick.com
Apr  9 14:41:38 dnsmasq[7442]: using standard nameservers for
googleads.g.doubleclick.com
Apr  9 14:41:38 dnsmasq[7442]: using nameserver 192.168.1.1#53
Apr  9 14:41:38 dnsmasq[7442]: using nameserver 192.168.1.1#53 for
domain home.arpa
Apr  9 14:41:38 dnsmasq[7442]: using only locally-known addresses for
googleads.g.doubleclick.com
Apr  9 14:41:38 dnsmasq[7442]: using standard nameservers for
googleads.g.doubleclick.com
...
Apr  9 14:48:52 dnsmasq[7442]: 63 127.0.0.1/59177 query[A]
googleads.g.doubleclick.com from 127.0.0.1
Apr  9 14:48:52 dnsmasq[7442]: 63 127.0.0.1/59177 config
googleads.g.doubleclick.com is NXDOMAIN


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