title: kubernetes.default: Name does not resolve
body: <p>Im running OpenShift. </p>
  
  <ul>
  <li>OpenShift Master: v3.3.1.7  </li>
  <li>Kubernetes Master: v1.3.0+52492b4</li>
  </ul>
  
  <p>But am having problems trying to run a build in Jenkins (running in a pod). This is not a problem with the java code that I'm trying to build, but is a problem in the Kubernetes/Openshift setup. </p>
  
  <p>The builds fail with:</p>
  
  <pre><code>Caused by: java.net.UnknownHostException: kubernetes.default: Name does not resolve
      at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
      at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
      at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
      at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
      at java.net.InetAddress.getAllByName(InetAddress.java:1192)
      at java.net.InetAddress.getAllByName(InetAddress.java:1126)
      at okhttp3.Dns$1.lookup(Dns.java:39)
      ...
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>