@Test
public void ndotsIsParsedIfPresent() throws IOException {

    File f = buildFile("search localdomain\n" +
                       "nameserver 127.0.0.11\n" +
                       "options ndots:0\n");
    assertEquals(0, parseEtcResolverFirstNdots(f));
    f = buildFile("search localdomain\n" +
                  "nameserver 127.0.0.11\n" +
                  "options ndots:123 foo:goo\n");
    assertEquals(123, parseEtcResolverFirstNdots(f));
}