]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add more functionality to nanonameserver.
authorBrian Wellington <bwelling@xbill.org>
Tue, 23 Jun 2020 23:46:48 +0000 (16:46 -0700)
committerBrian Wellington <bwelling@xbill.org>
Tue, 23 Jun 2020 23:46:48 +0000 (16:46 -0700)
commit167c89548218390cd1c28610bec86524a41617bc
tree776a48841c878ebffce26e11ae3450209554da04
parent01d0de14fa5c531b3a35ad93e6a5fcd5c14c38e7
Add more functionality to nanonameserver.

- When no port is specified, pick the same port for UDP and TCP, so that
TCP fallback can be tested.

- Change handlers to get a single Request object instead of individual
parameters.  The Request object contains the message, peer, and
connection_type previously passed, and also adds the local address and
wire format message.  Additionally, it provides convenient properties
for accessing the question.
tests/nanonameserver.py
tests/test_query.py
tests/test_resolver.py