Skip to content

Unknown QClass, Class, QType and Type shouldn't return DecodeError #22

@rushmorem

Description

@rushmorem

I propose we instead store those unknown values in an Unknown(u16) variant or something like that to allow the user to handle the query however they see fit. One might want to return NotImp or FormErr to such queries rather than simply dropping the packet which would prompt a DNS resolver to try again. That causes unnecessary additional load on a server for DNS records that are not even supported by that server. This also makes servers more future proof. Even if we manage to implement all classes and types now, in future there will definitely be more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions