Openshift and dead simple wildcard DNS for any IP Address : nip.io

ismail yenigül
1 min readNov 30, 2018

--

When I was creating a route on openshift, hostname was routename.projectname.instanceIP.nip.io (ie nginx.myproject.192.168.1.100.nip.io), I was wondering how it works without configuring custom DNS servers on my Mac or Openshift instance.

When I checked http://nip.io/,I got the answer. It is a global service and simply return the IP part of the record. So if your instance IP accessible from your laptop, you can use it without worrying any DNS update!

ismail ~ $ host app.10.0.0.10.nip.io  ns1.nip.io.
Using domain server:
Name: ns1.nip.io.
Address: 94.130.229.162#53
Aliases:
app.10.0.0.10.nip.io has address 10.0.0.10ismail ~ $ host anotherapp.10.0.0.10.nip.io ns1.nip.io.
Using domain server:
Name: ns1.nip.io.
Address: 94.130.229.162#53
Aliases:
anotherapp.10.0.0.10.nip.io has address 10.0.0.10

If you want to use your own domain name for Openshift routes hostname, you can create a wildcard DNS records like this. (X.Y.Z.T is your openshift instance IP)

*.mysubdomain.mydomain.com IN A X.Y.Z 

Ismail YENIGUL

--

--

ismail yenigül
ismail yenigül

Written by ismail yenigül

CKA/CKAD,AWS certified Freelancer DevOps Engineer

No responses yet