Skip to content

Add configurable feature to synthesize 127.0.0.1, ::1 and localhost responses to minidns-hla #101

Open

Description

@dmajirsky

I'm using your HLA for a reverse lookup of 127.0.0.1
ResolverApi.INSTANCE.reverseLookup("127.0.0.1");

I would expect the result to be "localhost", or the FQDN of my machine. Minidns responds with NX_DOMAIN.

Is this behavior correct? Why does minidns respond with NX_DOMAIN instead of resolving localhost?

Activity

  1. Flowdalic commented on Dec 7, 2019

    @Flowdalic
    Collaborator

    Why does minidns respond with NX_DOMAIN instead of resolving localhost?

    Because there are no resource records for 127.0.0.1, ::1, or localhost in the domain name system. Those are usually synthesized by the resolver.

    I can see how this can be surprising behavior for MiniDNS's high-level API (minidns-hla). I'll probably add a configurable feature to synthesize the responses to it.

  2. changed the title [-]Reverse lookup for 127.0.0.1[/-] [+]Add configurable feature to synthesize 127.0.0.1, ::1 and localhost responses to minidns-hla[/+] on Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions