Lines Matching refs:query
150 * Tests dns query.
159 final byte[] query = buildDnsQuery("www", "android", "com");
161 query, query.length, InetAddress.parseNumericAddress("8.8.8.8"), 53);
164 final byte[] reply = new byte[query.length];
179 * Helper method to build a dns query
180 * @param query the dns strings of the server
181 * @return the byte array of the dns query to send
184 private static byte[] buildDnsQuery(String... query) throws IOException {
198 for (String phrase : query) {