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

dnsmasq在docker中无应答

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

问题描述

制作了一个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
buy lsd botters aust 说:
2020年12月06日 17:07

Cool stuff you have got and you keep update all of us. buy lsd botters australia

Avatar_small
pretty gaming 说:
2020年12月14日 18:51

I read your blog frequently and I just thought I’d say keep up the amazing work! pretty gaming

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
how to make butt big 说:
2021年2月09日 19:47

This is important, though it's necessary to help you head over to it weblink:

Avatar_small
Roswell Locksmith 说:
2021年2月22日 15:42

The best article I came across a number of years, write something about it on this page.

Avatar_small
토토사이트 说:
2021年2月23日 14:00

It is somewhat fantastic, and yet check out the advice at this treat.

Avatar_small
Tech News 说:
2021年2月26日 19:47

These websites are really needed, you can learn a lot.

Avatar_small
driveway sealing 说:
2021年3月01日 19:25

Mmm.. estimable to be here in your report or notify, whatever, I repute I should moreover process strong for my have website want I play some salubrious further updated busy in your location.

Avatar_small
prayer for good doct 说:
2021年3月08日 17:01

I encourage you to read this text it is fun described ...

Avatar_small
สล็อตออนไลน์ไม่มีขั้ 说:
2021年3月09日 14:30

I wrote about a similar issue, I give you the link to my site.

Avatar_small
Hair vitamins hair g 说:
2021年3月30日 18:30

This is exciting, nevertheless it is vital for you to visit this specific url:

Avatar_small
꽁머니 3만 说:
2021年5月21日 19:37

I understand this column. I realize You put a many of struggle to found this story. I admire your process.

Avatar_small
Major Movie ดูหนังออ 说:
2021年5月22日 18:58

It is especially decent, though look into the tips during this home address.

Avatar_small
ตรวจหวย 说:
2021年5月24日 20:14

I propose merely very good along with reputable data, consequently visualize it:

Avatar_small
相睇 说:
2021年5月26日 16:16

Your texts on this subject are correct, see how I wrote this site is really very good.

Avatar_small
香港徵婚 说:
2021年6月01日 20:17

At this point you'll find out what is important, it all gives a url to the appealing page:

Avatar_small
speed dating 邊間好 说:
2021年6月20日 15:42

Impressive!Thanks for the post <a href="https://speeddating.com.hk/speeddating/">speed dating 邊間好</a>

Avatar_small
url shortener to ear 说:
2021年6月20日 16:35

Very good topic, similar texts are I do not know if they are as good as your work out.

Avatar_small
speed dating 邊間好 说:
2021年6月21日 03:32

Impressive!Thanks for the post <a href="https://speeddating.com.hk/speeddating/">speed dating 邊間好</a>

Avatar_small
Click Here 说:
2022年1月04日 19:27

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. images.google.be/url?sa=t&url=http%3A%2F%2Fdailymagazinepure.com
writeablog.net/slipblue03/definitions-of-sbobet-7l73
cse.google.se/url?sa=i&url=http%3A%2F%2Fdailymagazinepure.com%2F
images.google.ch/url?sa=t&url=https%3A%2F%2Fdailymagazinepure.com%2F
images.google.ch/url?sa=t&url=https%3A%2F%2Fdailymagazinepure.com


登录 *


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