通过 ip 可以但是域名不行
有没有大神遇到类似问题的,请帮忙解答
os@master:/data/jenkins$ kubectl exec -it jenkins-7fb9c8886f-d99qp bash
jenkins@jenkins-7fb9c8886f-d99qp:/$ curl -I baidu.com
curl: (6) Could not resolve host: baidu.com
jenkins@jenkins-7fb9c8886f-d99qp:/$ curl -I 111.13.101.208
HTTP/1.1 200 OK
Date: Thu, 26 Oct 2017 11:23:41 GMT
Server: Apache
Last-Modified: Tue, 12 Jan 2010 13:48:00 GMT
ETag: "51-47cf7e6ee8400"
Accept-Ranges: bytes
Content-Length: 81
Cache-Control: max-age=86400
Expires: Fri, 27 Oct 2017 11:23:41 GMT
Connection: Keep-Alive
Content-Type: text/html