questions-to-queries: generate respdiff queries from questions
Description
Generate queries from all or selected questions in the data set.
This is the sixth tool in the respdiff query filter toolchain. It's purpose is to generate actual respdiff queries to be sent by the tool from the question data set.
Example
respdiff-rs [--lmdb <ENVDIR>] questions-to-queries [--all]
Input
-
--all
to include all questions instead of selected ones
questions
LMDB - Read key
domain
- Format:
(qname,qtype,qclass): None
selected_questions
LMDB - Read key
domain
- Format:
(qname,qtype,qclass): None
Output
queries
LMDB - Assign a unique QID and write the DNS query in wire format
- Format:
<QID: uint32>: <dns wire format>
Operation
- question = LMDB
questions
if--all
else LMDBselected_questions
- qid = 1
- for each question:
- query = question to raw DNS wire format
- write
qid: query
to LMDBqueries
- qid += 1