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 lookup(String str) throws UnknownHostException { if (str == null) { throw new UnknownHostException("hostname == null"); } return Arrays.asList(InetAddress.getAllByName(str)); } }; List lookup(String str) throws UnknownHostException; }