@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)); }
static int parseEtcResolverFirstNdots() throws IOException { return parseEtcResolverFirstNdots(new File(ETC_RESOLV_CONF_FILE)); }
UnixResolverDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider { static int parseEtcResolverFirstNdots() throws IOException { return parseEtcResolverFirstNdots(new File(ETC_RESOLV_CONF_FILE)); } }
UnixResolverDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider { static int parseEtcResolverFirstNdots() throws IOException { return parseEtcResolverFirstNdots(new File(ETC_RESOLV_CONF_FILE)); } UnixResolverDnsServerAddressStreamProvider(File etcResolvConf, File... etcResolverFiles);  UnixResolverDnsServerAddressStreamProvider(String etcResolvConf, String etcResolverDir); }
UnixResolverDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider { static int parseEtcResolverFirstNdots() throws IOException { return parseEtcResolverFirstNdots(new File(ETC_RESOLV_CONF_FILE)); } UnixResolverDnsServerAddressStreamProvider(File etcResolvConf, File... etcResolverFiles);  UnixResolverDnsServerAddressStreamProvider(String etcResolvConf, String etcResolverDir); @Override DnsServerAddressStream nameServerAddressStream(String hostname); }
UnixResolverDnsServerAddressStreamProvider implements DnsServerAddressStreamProvider { static int parseEtcResolverFirstNdots() throws IOException { return parseEtcResolverFirstNdots(new File(ETC_RESOLV_CONF_FILE)); } UnixResolverDnsServerAddressStreamProvider(File etcResolvConf, File... etcResolverFiles);  UnixResolverDnsServerAddressStreamProvider(String etcResolvConf, String etcResolverDir); @Override DnsServerAddressStream nameServerAddressStream(String hostname);  }