WebAssembly / WebAssembly/WASI

DNS error rcode type

Open
#785 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

P-http
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.