Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 790
pilasguru Avatar asked May 07 '17 16:05

pilasguru


2 Answers

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
like image 131
pilasguru Avatar answered Jan 03 '23 05:01

pilasguru


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

like image 45
monis Avatar answered Jan 03 '23 05:01

monis