在一台 centos 7 上用 dnsmasq 搭了个 dns server
在另外一台机器上加上 nameserver private_dns_ip
现在 nslookup/dig 能解析到地址,但是 ping/curl 不通
直接 ping/curl ip 能通
[root@a11 k8s]# curl api.weapp.com
curl: (6) Could not resolve host: api.weapp.com; Name or service not known
[root@a11 k8s]# nslookup api.weapp.com
Server: 10.47.120.180
Address: 10.47.120.180#53
Name: api.weapp.com
Address: 10.47.51.76
[root@a11 k8s]# ping api.weapp.com
ping: unknown host api.weapp.com
[root@a11 k8s]# dig api.weapp.com
; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.2 <<>> api.weapp.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34061
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;api.weapp.com. IN A
;; ANSWER SECTION:
api.weapp.com. 0 IN A 10.47.51.76
;; Query time: 0 msec
;; SERVER: 10.47.120.180#53(121.196.227.185)
;; WHEN: Fri Apr 07 14:45:59 CST 2017
;; MSG SIZE rcvd: 47
[root@a11 k8s]# ping 10.47.51.76
PING 10.47.51.76 (10.47.51.76) 56(84) bytes of data.
64 bytes from 10.47.51.76: icmp_seq=1 ttl=63 time=0.307 ms
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.