title: Cannot ping other server from Execute Shell in Jenkins
body: <p>I'm trying to run a Jenkins job in a Mac using "Execute Shell" on it.
  The problem is that I need to perform a network call, for example doing a <code>ping google.com</code>, but i'm getting an error:</p>
  
  <pre><code>ping google.com
  
  ping: cannot resolve google.com: Unknown host
  </code></pre>
  
  <p>I tried injecting environment variables but it didn't worked.
  How can I do that?</p>