[Dnsmasq-discuss] Avoid conflicts between dnsmasq and systemd-resolved.
Hongyi Zhao
hongyi.zhao at gmail.com
Fri Sep 18 08:55:01 BST 2020
On Fri, Sep 18, 2020 at 2:59 PM Geert Stappers <stappers at stappers.nl> wrote:
>
> On Fri, Sep 18, 2020 at 08:08:07AM +0800, Hongyi Zhao 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.
>
> I fail to see the dnsmasq problem.
I mean, if I use the let dnsmasq listening on 127.0.0.1:6054 as
following, the problem will appear:
$ /usr/local/sbin/dnsmasq --port=6054
--servers-file=/home/werner/Public/anti-gfw/dns/dnsmasq/conf/servers-file/cn
-C /home/werner/Public/anti-gfw/dns/dnsmasq/conf/cn-dns.conf
While if I use dnsproxy to do the same job as following, the problem
will disappear:
$ 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
So, I draw that conclusion.
Regards,
HY
>
>
> > See following for more information:
>
> I did
>
>
> >
> > werner at X10DAi-01:~$ pgrep -ax dnsproxy
> > 50211 ./dnsproxy -l 127.0.0.1 -p 6053 --all-servers --fastest-addr -u
>
> port 6053
>
>
> > 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
>
> port 53
>
>
> > --server=127.0.0.1#6053
>
> port 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
>
> Probably port 53
>
>
> > ; <<>> 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)
>
> Yes indeed port 53
>
>
> > ;; WHEN: Fri Sep 18 08:03:37 CST 2020
> > ;; MSG SIZE rcvd: 69
> >
> > Regards,
> > HY
>
>
> Regards
> Geert Stappers
> --
> Silence is hard to parse
>
> _______________________________________________
> 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