dnsmasq在docker中无应答
问题描述
制作了一个docker镜像,运行dnsmasq。域名解析竟然无应答, no servers cloud be reached
- 发送请求解析域名
dig www.google.com @192.168.0.111 -p 53 ; <<>> DiG 9.11.3-RedHat-9.11.3-4.fc27 <<>> www.google.com @192.168.0.111 -p 53 ;; global options: +cmd ;; connection timed out; no servers could be reached
- dnsmasq打印日志。从日志中发现缺少reply
[root@bogon ss]# docker-compose -f chinadns.yml up dns-dnsmasq Starting ss_dns-dnsmasq_1 ... done Attaching to ss_dns-dnsmasq_1 dns-dnsmasq_1 | dnsmasq: started, version 2.79 cachesize 150 dns-dnsmasq_1 | dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify dns-dnsmasq_1 | dnsmasq: using nameserver 192.168.0.111#5354 dns-dnsmasq_1 | dnsmasq: read /etc/hosts - 7 addresses dns-dnsmasq_1 | dnsmasq: query[A] www.google.com from 192.168.0.111 # 请求发送给了上游dns服务器,无后续reply。再去看上游dns服务器,发现已经解析出了ip # 而dnsmasq还是无应答 dns-dnsmasq_1 | dnsmasq: forwarded www.google.com to 192.168.0.111 dns-dnsmasq_1 | dnsmasq: query[A] www.google.com from 192.168.0.111 dns-dnsmasq_1 | dnsmasq: forwarded www.google.com to 192.168.0.111
解决办法。
尝试了很多方法,很奇怪它为什么不能应答。dnsmasq也不大,放在宿主机上运行吧。
《了凡四训》详解之改过之法
印光大师十念法(胡小林主讲第1集)
百病之源
2020年11月14日 21:21
I was impressed with the site that you created, so memotipasi many people to be more advanced, there also kunjugi me, as a comparison 안전놀이터
2020年11月18日 21:03
Thankyou for this wondrous post, I am glad I observed this website on yahoo. 먹튀검증
2020年12月06日 17:07
Cool stuff you have got and you keep update all of us. buy lsd botters australia
2020年12月14日 18:51
I read your blog frequently and I just thought I’d say keep up the amazing work! pretty gaming
2020年12月16日 16:03
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, vape pen dry herb vaporizer
2021年1月03日 18:24
This was a shocking post. It has some look at here fundamental data on this subject. custom patches
2021年1月04日 20:10
I needed to thank you for this incredible read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post. look at here now