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

2019-07-21 10:09发布

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.

3条回答
爷、活的狠高调
2楼-- · 2019-07-21 10:57

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

查看更多
放我归山
3楼-- · 2019-07-21 10:58

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

查看更多
仙女界的扛把子
4楼-- · 2019-07-21 11:02

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
查看更多
登录 后发表回答