title: Docker: ping: unknown host yahoo.com
body: <p>Here are all the things I tried:</p>
  
  <p>Ran docker deamon  with -dns:</p>
  
  <pre><code>sudo docker -d -dns 8.8.8.8
  </code></pre>
  
  <p>Made sure that IP forwarding is enabled:</p>
  
  <pre><code>$ sysctl net.ipv4.ip_forward
  net.ipv4.ip_forward = 1
  </code></pre>
  
  <p>Nameservers are in place:</p>
  
  <pre><code>$ docker -dns '8.8.8.8' run centos:6.4 ping -c 3 8.8.8.8 
  PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
  --- 8.8.8.8 ping statistics --- 
  3 packets transmitted, 0 received, 100% packet loss, time 12000ms
  </code></pre>
  
  <p>Appreciate any suggestions.</p>