<p>I have Kubernetes cluster on cloud and local secure docker registry (example.com, 192.168.1.124).
While trying to pull image from registry (example.com/mongo), it is resolving IP of real example.com, not for my local registry. 
I have created ConfigMap on kube-system namespace:</p>

<pre><code>Name:         marketplace-dns
Namespace:    kube-system
Labels:       &lt;none&gt;
Annotations:  &lt;none&gt;

Data
====
configmap_dns.yaml:
----
apiVersion: v1
kind: ConfigMap
metadata:
  name: kube-dns
  namespace: kube-system
data:
  stubDomains: |
    {"example.com": ["192.168.1.124"]}
Events:  &lt;none&gt;
</code></pre>

<p>And set <code>hostNetwork: true
  dnsPolicy: ClusterFirst</code> on my kubernetes deployment yaml, but problem still exists....</p>

user37033
<p>I guess set <code>dnsPolicy: ClusterFirstWithHostNet</code> will do the job.</p>
