evdns need to handle localhost queries (on Windows)
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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