Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmajirsky opened this issue Dec 3, 2019 · 1 comment

Comments

@dmajirsky
Copy link

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?

@Flowdalic
Copy link
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.

@Flowdalic Flowdalic 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 Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants