Skip to content

Fix response code in edge cases #134

@Mossop

Description

@Mossop

NXDOMAIN is meant to mean that the domain name has no address. So when requesting foo.example.org:

  • If A(foo.example.org) exists -> NOERROR.
  • If AAAA(foo.example.org) exists -> NOERROR.
  • If CNAME(foo.example.org -> test.example.org) exists then the response code is the same as if A(test.example.org) was requested.

The query type doesn't matter. Where we currently fail is if you query for CNAME we don't do the follow on lookups to determine if the response code should be NOERROR or NXDOMAIN. We just return NOERROR as a CNAME record was found.

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