title: WebDriver unknown error: net::ERR_NAME_NOT_RESOLVED
body: <p>I want to run Selenium Web Driver inside Azure DevOps</p>
  <pre><code>public class ListItemsTest {
  
      ChromeDriver driver;
      NgWebDriver ngWebDriver;
  
      @BeforeAll
      public void setupTest(){
  
          System.setProperty(&quot;sun.net.spi.nameservice.nameservers&quot;, &quot;8.8.8.8&quot;);
          System.setProperty(&quot;sun.net.spi.nameservice.provider.1&quot;, &quot;dns,sun&quot;);
  
          WebDriverManager.chromedriver().setup();
  
          ChromeOptions options = new ChromeOptions();
          options.setCapability(&quot;applicationCacheEnabled&quot;, false);
          options.addArguments(&quot;--ignore-certificate-errors&quot;);
          options.addArguments(&quot;--headless&quot;);
          options.addArguments(&quot;--disable-gpu&quot;);
  
          driver = new ChromeDriver(options);
  
          ngWebDriver = new NgWebDriver(driver);
          ngWebDriver.waitForAngularRequestsToFinish();
      }
  }
  </code></pre>
  <p>But looks like there is no DNS service. I get error:</p>
  <pre><code>ListItemsTest.LoginTest:50 Â» WebDriver unknown error: net::ERR_NAME_NOT_RESOLV...
  2020-11-18T18:29:17.7803528Z [ERROR]   LoginTest.LoginTest:96 Â» WebDriver unknown error: net::ERR_NAME_NOT_RESOLVED
  </code></pre>
  <p>Do you know how I can fix this issue?</p>