[Dnsmasq-discuss] Avoid conflicts between dnsmasq and systemd-resolved.

Hongyi Zhao hongyi.zhao at gmail.com
Fri Sep 18 01:08:07 BST 2020


On Thu, Sep 17, 2020 at 2:04 PM Geert Stappers <stappers at stappers.nl> wrote:
>
> On Thu, Sep 17, 2020 at 07:25:43AM +0800, Hongyi Zhao wrote:
> >
> > But I still can't figure out what's the wrong configuration or
> > **bug** (may or may not exist, I'm not sure.) in dnsmasq itself
> > triggered this problem.

I can confirm this problem is caused by the response to type=ANY
request of dnsmasq. And when I substitute the corresponding job done
by dnsmasq with dnsproxy, the problem will be solved. See following
for more information:

werner at X10DAi-01:~$ pgrep -ax dnsproxy
50211 ./dnsproxy -l 127.0.0.1 -p 6053 --all-servers --fastest-addr -u
tls://8.8.4.4 -u tls://8.8.8.8 -u tls://1.0.0.1 -u tls://1.1.1.1 -u
tls://9.9.9.9 -u tls://9.9.9.10 -u tls://149.112.112.10
50212 ./dnsproxy -u 114.114.114.114 -u 114.114.115.115 -u
114.114.114.119 -u 114.114.115.119 -u 114.114.114.110 -u
114.114.115.110 -u 223.5.5.5 -u 223.6.6.6 -u 180.76.76.76 -u
112.124.47.27 -u 114.215.126.16 --fastest-addr --all-servers -l
127.0.0.1 -p 6054
werner at X10DAi-01:~$ pgrep -ax dnsmasq
50243 /usr/local/sbin/dnsmasq --port=53 -c10240 --localise-queries
--server=127.0.0.1#6053
--conf-dir=/home/werner/Public/anti-gfw/dns/dnsmasq/conf/conf-dir,*.conf
-C /home/werner/Public/anti-gfw/dns/dnsmasq/conf/dnsmasq.conf
werner at X10DAi-01:~$ dig www.baidu.com ANY @127.0.0.1

; <<>> DiG 9.16.1-Ubuntu <<>> www.baidu.com ANY @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51448
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.baidu.com.            IN    ANY

;; ANSWER SECTION:
www.baidu.com.        1133    IN    CNAME    www.a.shifen.com.

;; Query time: 36 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Sep 18 08:03:37 CST 2020
;; MSG SIZE  rcvd: 69

Regards,
HY


>
>
> Acknowledge
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



-- 
Hongyi Zhao <hongyi.zhao at gmail.com>



More information about the Dnsmasq-discuss mailing list