libevent / libevent/libevent

evdns need to handle localhost queries (on Windows)

Open
#1,120 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

prio:accepting-patches subsystem:dns
Dominant language
C
Stars
12k
Forks
3.5k
Avg merge
12h 55m
Merged PRs (30d)
6

Description

starting in Win8 , c:\windows\system32\drivers\etc\hosts has "localhost" entry commented out, (with comment that it is moving into DNS to handle it ) this will make program using evdns to send localhost queries to upstream DNS server, which some server doesn't respond correctly.

the temporal solution is to call evdns_resolv_conf_parse(base, NULL) which will force adding an localhost entry, but ideally, we should just do this within libevent codebase

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing evdns_resolv_conf_parse and the Windows-specific localhost handling in libevent. Reproduce a localhost query with the Windows hosts entry commented out, then verify that libevent handles localhost locally rather than sending it to upstream DNS.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.