22 lines
689 B
Java
22 lines
689 B
Java
|
package okhttp3.repackaged;
|
||
|
|
||
|
import java.net.InetAddress;
|
||
|
import java.net.UnknownHostException;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public interface Dns {
|
||
|
public static final Dns SYSTEM = new Dns() { // from class: okhttp3.repackaged.Dns.1
|
||
|
@Override // okhttp3.repackaged.Dns
|
||
|
public final List<InetAddress> lookup(String str) throws UnknownHostException {
|
||
|
if (str == null) {
|
||
|
throw new UnknownHostException("hostname == null");
|
||
|
}
|
||
|
return Arrays.asList(InetAddress.getAllByName(str));
|
||
|
}
|
||
|
};
|
||
|
|
||
|
List<InetAddress> lookup(String str) throws UnknownHostException;
|
||
|
}
|