Home | History | Annotate | Download | only in DNS

Lines Matching refs:query

10  * An implementation of Resolver that sends one query to one server.
42 * Creates a SimpleResolver that will query the specified host
61 * Creates a SimpleResolver. The host to query is either found by using
81 /** Sets the default host (initially localhost) to query */
195 verifyTSIG(Message query, Message response, byte [] b, TSIG tsig) {
198 int error = tsig.verify(response, b, query.getTSIG());
204 applyEDNS(Message query) {
205 if (queryOPT == null || query.getOPT() != null)
207 query.addRecord(queryOPT, Section.ADDITIONAL);
211 maxUDPSize(Message query) {
212 OPTRecord opt = query.getOPT();
221 * is done to ensure that the response is associated with the query.
222 * @param query The query to send.
227 send(Message query) throws IOException {
233 if (query.getHeader().getOpcode() == Opcode.QUERY) {
234 Record question = query.getQuestion();
236 return sendAXFR(query);
239 query = (Message) query.clone();
240 applyEDNS(query);
242 tsig.apply(query, null);
244 byte [] out = query.toWire(Message.MAXLENGTH);
245 int udpSize = maxUDPSize(query);
268 * Check that the response ID matches the query ID. We want
274 int qid = query.getHeader().getID();
288 verifyTSIG(query, response, in, tsig);
304 * @param query The query to send
309 sendAsync(final Message query, final ResolverListener listener) {
314 Record question = query.getQuestion();
321 Thread thread = new ResolveThread(this, query, id, listener);
329 sendAXFR(Message query) throws IOException {
330 Name qname = query.getQuestion().getName();
341 Message response = new Message(query.getHeader().getID());
344 response.addRecord(query.getQuestion(), Section.QUESTION);