title: Can't ping other pods by hostname on minikube
body: <p>I have a statefulSet with two replicas.
  It's headless service name is <strong>"gov-svc"</strong>
  It's -></p>
  
  <ol>
  <li>.metadata.name: sts</li>
  <li>.metadata.namespace: default</li>
  <li>.spec.serviceName: gov-svc</li>
  <li>.spec.template.spec.subdomain: gov-svc</li>
  <li>.spec.replicas: 2</li>
  </ol>
  
  <p>Before running statefulSet</p>
  
  <pre><code>kubectl get pods --all-namespaces
  NAMESPACE     NAME                                    READY   STATUS             RESTARTS   AGE
  kube-system   coredns-99b9bb8bd-qdnsb                 1/1     Running            0          4h
  kube-system   etcd-minikube                           1/1     Running            0          4h
  kube-system   kube-addon-manager-minikube             1/1     Running            0          4h
  kube-system   kube-apiserver-minikube                 1/1     Running            0          4h
  kube-system   kube-controller-manager-minikube        1/1     Running            1          4h
  kube-system   kube-proxy-b9np6                        1/1     Running            0          4h
  kube-system   kube-scheduler-minikube                 1/1     Running            0          4h
  kube-system   kubernetes-dashboard-7db4dc666b-bsk8k   1/1     Running            0          4h
  kube-system   storage-provisioner
  </code></pre>
  
  <p>After running both of the pods of this statefulSet, from pod <code>sts-0</code>, <code>ping</code> results:</p>
  
  <pre><code>$ ping  sts-0.gov-svc.default.svc.cluster.local
  PING sts-0.gov-svc.default.svc.cluster.local (172.17.0.11): 56 data bytes
  64 bytes from 172.17.0.11: seq=0 ttl=64 time=0.051 ms
  64 bytes from 172.17.0.11: seq=1 ttl=64 time=0.444 ms
  ^C
  --- redis-cluster-exp-0-0.redis-cluster-exp.default.svc.cluster.local ping statistics ---
  2 packets transmitted, 2 packets received, 0% packet loss
  round-trip min/avg/max = 0.051/0.247/0.444 ms
  </code></pre>
  
  <p>But when I try to <code>ping sts-1</code> from <code>sts-0</code>, it says:</p>
  
  <pre><code>$ ping sts-1.gov-svc.default.svc.cluster.local
  ping: bad address 'sts-1.gov-svc.default.svc.cluster.local'
  </code></pre>
  
  <p>I need to ping other pods successfully by hostname. How can I do it?</p>