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

localhost not preloaded #29

Open
daurnimator opened this issue Jul 15, 2018 · 0 comments
Open

localhost not preloaded #29

daurnimator opened this issue Jul 15, 2018 · 0 comments

Comments

@daurnimator
Copy link

I was suprised to see dns.c reach out to my dns server to ask about 'localhost'.

rfc6761:

6.3. Domain Name Reservation Considerations for "localhost."

...

  1. Name resolution APIs and libraries SHOULD recognize localhost
    names as special and SHOULD always return the IP loopback address
    for address queries and negative responses for all other query
    types. Name resolution APIs SHOULD NOT send queries for
    localhost names to their configured caching DNS server(s).

I tracked this down to be due to /etc/hosts not containing a 'localhost' entry: dns.c needs to treat localhost specially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant