| 1 |
/* |
| 2 |
* Copyright 2015-2020 the original author or authors |
| 3 |
* |
| 4 |
* This software is licensed under the Apache License, Version 2.0, |
| 5 |
* the GNU Lesser General Public License version 2 or later ("LGPL") |
| 6 |
* and the WTFPL. |
| 7 |
* You may choose either license to govern your use of this software only |
| 8 |
* upon the condition that you accept all of the terms of either |
| 9 |
* the Apache License 2.0, the LGPL 2.1+ or the WTFPL. |
| 10 |
*/ |
| 11 |
package org.minidns.dnsserverlookup; |
| 12 |
|
| 13 |
import java.util.List; |
| 14 |
|
| 15 |
public interface DnsServerLookupMechanism extends Comparable<DnsServerLookupMechanism> { |
| 16 |
|
| 17 |
String getName(); |
| 18 |
|
| 19 |
int getPriority(); |
| 20 |
|
| 21 |
boolean isAvailable(); |
| 22 |
|
| 23 |
/** |
| 24 |
* Returns a List of String representing ideally IP addresses. The list must be modifiable. |
| 25 |
* <p> |
| 26 |
* Note that the lookup mechanisms are not required to assure that only IP addresses are returned. This verification is performed in |
| 27 |
* when using {@link org.minidns.DnsClient#findDNS()}. |
| 28 |
* </p> |
| 29 |
* |
| 30 |
* @return a List of Strings presenting hopefully IP addresses. |
| 31 |
*/ |
| 32 |
List<String> getDnsServerAddresses(); |
| 33 |
|
| 34 |
} |