| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | cache statistics | Bob Halley | 2020-07-19 | 1 | -0/+35 |
| | | |||||
| * | Add dns.edns.register_type(). | Brian Wellington | 2020-07-17 | 1 | -0/+37 |
| | | | | | This allows an application to register a custom EDNS option type. | ||||
| * | Use the selectors module. | Brian Wellington | 2020-07-17 | 2 | -23/+9 |
| | | | | | | | Previously, there was code to either use select.select or select.poll, depending on OS. This changes it to use the selectors module, using either SelectSelector or PollSelector, but sharing code otherwise. | ||||
| * | Add coverage for TCP/TLS async getsockname. | Brian Wellington | 2020-07-08 | 1 | -0/+4 |
| | | |||||
| * | Add support for receiving UDP queries. | Brian Wellington | 2020-07-08 | 2 | -0/+31 |
| | | | | | | | | | | | | | | | The existing receive_udp() methods are only usable for receiving responses, as they require an expected destination and check that the message is from that destination. This change makes the expected destination (and hence the check) optional, and returns the address that the message was received from (in the sync case, this is only done if no destination is provided, for backwards compatibility). New tests are added, which required adding generic getsockname() support to the async backends. | ||||
| * | Don't read resolv.conf in tests that don't use it. | Brian Wellington | 2020-07-08 | 4 | -9/+10 |
| | | |||||
| * | Remove debugging print. | Brian Wellington | 2020-07-08 | 1 | -1/+0 |
| | | |||||
| * | Merge pull request #531 from bwelling/tsig2 | Bob Halley | 2020-07-07 | 1 | -8/+10 |
| |\ | | | | | Split TSIG sign and validate. | ||||
| | * | Split TSIG sign and validate. | Brian Wellington | 2020-07-07 | 1 | -8/+10 |
| | | | |||||
| * | | TSIG code now uses dns.rcode.Rcode enum values for the TSIG error field. | Bob Halley | 2020-07-07 | 2 | -4/+21 |
| | | | |||||
| * | | Fix Message.want_dnssec(). | Brian Wellington | 2020-07-07 | 1 | -0/+1 |
| |/ | | | | | It was incorrectly calling Message._make_opt() in the case where the message was not currently using EDNS. | ||||
| * | Give up on socket.getfqdn() testing with CDN-hosted resources as it has too ↵ | Bob Halley | 2020-07-06 | 1 | -7/+16 |
| | | | | | much magic. | ||||
| * | improve name coverage | Bob Halley | 2020-07-03 | 1 | -0/+4 |
| | | |||||
| * | more coverage for wire | Bob Halley | 2020-07-02 | 1 | -1/+33 |
| | | |||||
| * | Consolidate NSEC/NSEC3/CSYNC bitmap handling. | Brian Wellington | 2020-07-02 | 1 | -0/+10 |
| | | | | | | | | This also fixes several bugs; the NSEC3 code would properly avoid empty windows, but the NSEC and CSYNC code did not. Also, none of the wire parsing routines properly checked to see that the window number was monotonically increasing. | ||||
| * | Rework wire format processing. | Bob Halley | 2020-07-02 | 4 | -162/+78 |
| | | | | | | | Wire format data is now done via a dns.wire.Parser, which does all of the bookkeeping and also provides convenience routines (e.g. get_uint16() or get_name()). | ||||
| * | Merge pull request #527 from bwelling/tsigkey | Bob Halley | 2020-07-01 | 2 | -6/+38 |
| |\ | | | | | Add dns.tsig.Key class. | ||||
| | * | Better deal with backwards compatibility. | Brian Wellington | 2020-07-01 | 2 | -12/+19 |
| | | | | | | | | | | | | | | | | | If dns.tsigkeyring.from_text() creates dns.tsig.Key objects with the default algorithm, that causes problems for code that specifies a different algorithm. There's no good way to handle this, so change dns.tsigkeyring.from_text() to not create dns.tsig.Key objects unless it knows the algorithm. | ||||
| | * | Add dns.tsig.Key class. | Brian Wellington | 2020-07-01 | 2 | -5/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This creates a new class to represent a TSIG key, containing name, secret, and algorithm. The keyring format is changed to be {name : key}, and the methods in dns.tsigkeyring are updated to deal with old and new formats. The Message class is updated to use dns.tsig.Key, although (to avoid breaking existing code), it stores them in the keyring field. Message.use_tsig() can accept either explicit keys, or keyrings; it will extract and/or create a key. dns.message.from_wire() can accept either a key or a keyring in the keyring parameter. If passed a key, it will now raise if the TSIG record in the message was signed with a different key. If passed a keyring containing keys (as opposed to bare secrets), it will check that the TSIG record's algorithm matches that of the key. | ||||
| * | | Merge remote-tracking branch 'upstream/master' into amtrelay | Brian Wellington | 2020-07-01 | 2 | -0/+118 |
| |\ \ | |/ | |||||
| | * | increase resolver coverage | Bob Halley | 2020-07-01 | 1 | -0/+58 |
| | | | |||||
| | * | avoid low-level wait tests on Windows | Bob Halley | 2020-07-01 | 1 | -0/+3 |
| | | | |||||
| | * | more query coverage | Bob Halley | 2020-06-30 | 1 | -0/+57 |
| | | | |||||
| * | | Add support for the AMTRELAY type. | Brian Wellington | 2020-07-01 | 4 | -0/+20 |
| |/ | |||||
| * | One more dnssec test. | Brian Wellington | 2020-06-30 | 1 | -0/+4 |
| | | |||||
| * | Add more dnssec coverage testing. | Brian Wellington | 2020-06-30 | 1 | -0/+44 |
| | | |||||
| * | Merge pull request #525 from bwelling/tsig | Bob Halley | 2020-06-30 | 2 | -6/+50 |
| |\ | | | | | Adds support for a TSIG record class. | ||||
| | * | Test (and fix) renderer.add_multi_tsig(). | Brian Wellington | 2020-06-30 | 1 | -0/+29 |
| | | | |||||
| | * | Store a TSIG rrset on the message object. | Brian Wellington | 2020-06-30 | 2 | -6/+21 |
| | | | |||||
| * | | increase name test coverage | Bob Halley | 2020-06-30 | 1 | -0/+66 |
| | | | |||||
| * | | increase test coverage | Bob Halley | 2020-06-30 | 1 | -0/+24 |
| | | | |||||
| * | | increase update test coverage | Bob Halley | 2020-06-30 | 1 | -0/+109 |
| |/ | |||||
| * | fix indentation of test_bogus_family() | Bob Halley | 2020-06-29 | 1 | -5/+5 |
| | | |||||
| * | more coverage improvements | Bob Halley | 2020-06-29 | 4 | -0/+115 |
| | | |||||
| * | add basic renderer testing | Bob Halley | 2020-06-29 | 1 | -0/+46 |
| | | |||||
| * | increase namedict coverage | Bob Halley | 2020-06-28 | 1 | -0/+37 |
| | | |||||
| * | increase coverage | Bob Halley | 2020-06-28 | 3 | -0/+72 |
| | | |||||
| * | remove debugging prints | Bob Halley | 2020-06-28 | 2 | -2/+0 |
| | | |||||
| * | add serial number arithmetic helper | Bob Halley | 2020-06-27 | 1 | -0/+115 |
| | | |||||
| * | test update section validation | Bob Halley | 2020-06-27 | 1 | -16/+112 |
| | | |||||
| * | test class factory and update from_wire() | Bob Halley | 2020-06-26 | 2 | -0/+11 |
| | | |||||
| * | Use `configure=False` in tests to skip reading /etc/resolv.conf | Lumir Balhar | 2020-06-25 | 1 | -5/+5 |
| | | |||||
| * | lint nanonameserver | Bob Halley | 2020-06-24 | 1 | -1/+1 |
| | | |||||
| * | Fix cut-and-paste error. | Brian Wellington | 2020-06-24 | 1 | -1/+1 |
| | | |||||
| * | Close extra UDP sockets more quickly. | Brian Wellington | 2020-06-24 | 1 | -23/+30 |
| | | | | | | If any UDP sockets are left open due to the corresponding TCP ports being in use, close them. | ||||
| * | Remove unused code. | Brian Wellington | 2020-06-24 | 1 | -16/+0 |
| | | |||||
| * | Add more functionality to nanonameserver. | Brian Wellington | 2020-06-23 | 3 | -29/+85 |
| | | | | | | | | | | | | - 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. | ||||
| * | make read_resolv_conf() tests work on win32 too | Bob Halley | 2020-06-23 | 1 | -2/+4 |
| | | |||||
| * | merge mostly redundant resolv.conf test into existing test | Bob Halley | 2020-06-23 | 1 | -35/+15 |
| | | |||||
| * | test resolv.conf settings | Bob Halley | 2020-06-23 | 1 | -0/+20 |
| | | |||||
