Bug 255316 - Use of a Link-local address in resolv.conf does not work
Summary: Use of a Link-local address in resolv.conf does not work
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-22 02:38 UTC by bc979
Modified: 2023-11-28 02:16 UTC (History)
1 user (show)

See Also:


Attachments
Suggested Patch (deleted)
2021-04-22 02:38 UTC, bc979
no flags Details
Reversed Patch file (728 bytes, patch)
2021-04-22 02:45 UTC, bc979
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bc979 2021-04-22 02:38:08 UTC
Created attachment 224347 [details]
Suggested Patch

If /etc/resolv.conf has a link-local IPv6 address for the DNS server, then host does not function even though ping works properly.  I have traced the problem to /usr/src/contrib/unbound/libunbound/libunbound.c where the test for valid characters does not accept the % or some of the following characters.

I have attached a patch which I believe resolves the problem, but am unable to test it in the system as I was not able to figure out how to build host with the updated file.  I am also not confident that there are other places that use that lib that cannot handle the link-local addresses.
Comment 1 bc979 2021-04-22 02:45:04 UTC
Created attachment 224348 [details]
Reversed Patch file
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2023-11-28 02:15:59 UTC
The content of attachment 224347 [details] has been deleted for the following reason:

see resubmitted patch.