Minishift: Could not resolve: *.192.168.64.2.nip.io

强颜欢笑 提交于 2019-12-10 16:36:13

问题


I have installed minishift on OSX with brew:

brew cask install minishift-beta
...

$ minishift version
Minishift version: 1.0.0

I have sucessfuly started minishift, and created node-ex example application and exported it:

$ oc get route
NAME        HOST/PORT                                 PATH      SERVICES    PORT       TERMINATION   WILDCARD
nodejs-ex   nodejs-ex-myproject.192.168.64.2.nip.io             nodejs-ex   8080-tcp                 None

However I can not reach .192.168.64.2.nip.io:

$ curl nodejs-ex-myproject.192.168.64.2.nip.io
curl: (6) Could not resolve host: nodejs-ex-myproject.192.168.64.2.nip.io


$ dig +short nodejs-ex-myproject.192.168.64.2.nip.io
$

All is working with minishift web console and oc command, but I can not reach the application domain.


回答1:


Is something on your machine or network blocking DNS queries to nip.io?




回答2:


Thank you @enj. The explanation at http://nip.io is clear about how it works.

I have seen that queries to 8.8.8.8 and to my ISP DNS are resolved to my private IP. But it is my router (my primary DNS) which do respond nip.io

My router run DD-WRT and has enabled

Rebind protection   Discard upstream RFC1918 responses 

then I add nip.io at

Domain whitelist    nip.io

and now I resolve queries:

≻ dig +short test.10.0.0.1.nip.io
10.0.0.1



回答3:


When playing with Minishift at home, where I am connected to the internet via Deutsche Telekom's VDSL and Speedport-Router, I cannot resolve these xip.io or nip.io addresses.

My workaround is to put 8.8.8.8 into /etc/resolv.conf



来源:https://stackoverflow.com/questions/43834159/minishift-could-not-resolve-192-168-64-2-nip-io

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!