WebAssembly / WebAssembly/WASI
DNS error rcode type
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
The DNS-error-payload type is currently defined as this:
/// Defines the case payload type for `DNS-error` above:
@since(version = 0.2.0)
record DNS-error-payload {
rcode: option<string>,
info-code: option<u16>
}
This has the rcode value be a string. However, DNS rcodes have standardized values that are defined in terms of u16 values.
With the current type being string, implementations appear to be using ad-hoc error messages which don't correspond to any standardized rcode value.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WIT definition of DNS-error-payload and compare its rcode field with the IANA DNS parameters linked in the issue. Review the Wasmtime implementation example to understand the current string values. Done means the interface represents standardized DNS rcode values without relying on ad-hoc error messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- networking
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100