Martin Hoffmann

Results 206 comments of Martin Hoffmann

Internally the message is really just the wire format representation, so in most cases you need to rebuild it anyway. That doesn’t mean the current interface is great. Adding a...

The resolver wasn’t really intended to do more complex “DNS-internal” operations but to supply what a resolver in libc would usually do. For more complex things, I would at this...

There’s now an example on how to do a simple request/response sequence in `examples/client.rs`. Moving the networking to a separate module will follow later.

Thank you for the PR! It’s looking quite good. One thing I would want to accomplish with this redesign is to make it possible to use other octets types than...

Sorry, wrong button.

I am now wondering whether I am overthinking this. At the end of the day, you don’t really care about escape sequences. I _think_ the only time you need to...

Resolving escape sequences via allocations should indeed be fine. I think all escape sequences are longer than their content, so the scanner could even cheat and quietly change the buffer...

It is entirely possible that backtracking is necessary for one of the record types. But in any case, I don’t think having separate facilities for record data parsing and zone...

I honestly haven’t thought that far. But the idea of the trait (at least in my head) is that you can have multiple implementations that are tailored for different needs....

But your command line format uses zonefile format. The only difference is that the “tokenization“ is done through the `env::arg` mechanism rather than an internal lexer. Everything above that will...