Commit 37d96c9a authored by Petr Špaček's avatar Petr Špaček

respdiff v2: add README.rst

parent a0cc37e5
Respdiff second generation
Respdiff is an abbreviation from "response differences" used as name for set of tools
allowing to gather answers to DNS queries from DNS servers and compare them based on specified criteria.
Respdiff v2 is conceptually chain of independent tools:
1. qprep: generate queries in wire format
2. orchestrator: send pre-generated wire format to servers and gather answers
3. msgdiff: compare DNS answers
4. diffsum: summarize differences into textual report
This split allows us to repeat steps using the same data as necessary,
e.g. run analysis with different parameters without re-querying the
Tool `` reads list of queries in text format `<name> <RR type>`
and generates wire format for the queries. The wire format is stored in LMDB.
Right now it hardcodes EDNS buffer size 4096 B and DO flag set.
Future versions might allow some query customization.
Tool `` then reads query wire format from LMDB, sends it to
DNS servers and stores answer from each server inside LMDB.
Names of servers are specified in config file section `[servers]` in key `names`.
IP address and port of each server is read from the config file.
Multiple queries might be send in parallel,
see `[sendrecv]` section in the config file.
Gathered answers can be analyzed using tool ``
which reads configuration from config file section `[diff]`.
The tool refers to one resolver as `target` and to remaining servers
as `others`. Msgdiff compares specified fields and stores result
in the LMDB.
Diffs computed by `` can be translated into text report
using tool `` which computes statistics based on that comparion results.
Answers where `others` do not agree with each other are simply counted but
not processed further.
Answers where `others` agree but the `target`
returned a different answer than all `others` are counted separately
with higher granularity, producing stats for each field in DNS message
(rcode, flags, answer section, ...).
Ordering and grouping of mismatches is specified in `[report]` section of config file.
Please note that this is very basic use-case where nothing is prepared beforehand.
$ ./ "{$DIR}" < list_of_queries_in_text_format
$ ./ "${DIR}" # send queries and gather answers
$ ./ "${DIR}" # compute diffs
$ ./ "${DIR}" > "${DIR}"/"${DIR}".txt # generate text report
It is possible to re-use results of `qprep`,
just copy the directory somewhere and run `orchestrator` again.
Also, you can re-run `msgdiff` and `diffsum` using different configuration.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment