docker容器中不能ping
为jekyll制作docker镜像

dnsmasq在docker中无应答

妙音 posted @ 2018年10月01日 22:15 in docker with tags dnsmasq docker chinadns , 2421 阅读

问题描述

制作了一个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集)
百病之源

 

Avatar_small
buy soma 500 说:
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 안전놀이터

Avatar_small
먹튀검증 说:
2020年11月18日 21:03

Thankyou for this wondrous post, I am glad I observed this website on yahoo. 먹튀검증

Avatar_small
no excuses runner 说:
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

Avatar_small
no excuses runner 说:
2021年1月03日 18:24

This was a shocking post. It has some look at here fundamental data on this subject. custom patches

Avatar_small
no excuses runner 说:
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

Avatar_small
SEO 说:
2023年7月23日 04:17

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It's always nice when you can not only be informed, but also entertained! קנדה ETA

Avatar_small
Imamia Quran Academy 说:
2023年7月23日 06:03

Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post. I am from Imamia Quran Academy. Online Shia Quran Madrasa is second to none in providing education to Shia women’s. So our center has selected Shia Female Quran teacher with higher education from Madrasas.

Avatar_small
master237 说:
2023年8月10日 19:36

Koop marihuana online van de beste leveranciers in Nederland, we doen discrete verzending, We hebben een 100 procent terugbetaalbaar beleid dat onze klanten dekt. Veiligheid en tevredenheid is alles wat we garanderen.

Buy marijuana online from the best suppliers in the Netherlands. We do discrete shipping, we have a 100 percent refundable policy that covers our clients. Safety and satisfaction are all we guarantee.

Wiet Kopen https://wiethuis.com/
Wiet Bestellen https://wiethuis.com/wiet-bestellen/
Cali Weed https://wiethuis.com/cali-weed/

Buy weed online UK https://weedmount.com/

Gras Kaufen https://thcgrashaus.com/
Weed Kaufen https://thcgrashaus.com/weed-kaufen/
Cali Weed Kaufen https://thcgrashaus.com/cali-weed-kaufen/

Gras Kaufen https://grashugel.com/
Cali Weed Kaufen https://grashugel.com/cali-weed-kaufen/

Prix Beuh https://beuhferme.com/

Buy weed online in Europe https://allgreenestate.com/
Buy Delta 8 https://allgreenestate.com/product-category/buy-delta-8-thc-marijuana-online-europe/

KOKAIN KAUFEN https://kokainhaus.com/
Kokain Preis https://kokainhaus.com/kokain-preis/

KO TROPFEN KAUFEN https://ko-tropfen.com/
Diazepam Kaufen https://ko-tropfen.com/diazepam-kaufen/

MDMA Kaufen https://drogenplatz.com/
LSD KAUFEN https://drogenplatz.com/lsd-kaufen/
Ecstasy Kaufen https://drogenplatz.com/ecstasy-kaufen/
Xanax Kaufen https://drogenplatz.com/xanax-kaufen/

Ketamin Kaufen https://drogenpalast.com/
Amphetamin Kaufen https://drogenpalast.com/amphetamin-kaufen/


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter