[Bug 204927] libc resolver not stripping trailing dot for lookup in /etc/hosts
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Feb 2025 14:38:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204927 --- Comment #2 from mike@skew.org --- I'm not in a position to test on a current version. It should be easy to test, though. See what you have in /etc/hosts. All you need is a FQDN with no trailing dot. Try looking up (e.g. via showip.c) that exact FQDN with and without a trailing dot. Compare the results to what the hostname(7) manpage says, which is still "If the input name ends with a trailing dot, the trailing dot is removed, and the remaining name is looked up with no further processing." In other words, the results should be the same. -- You are receiving this mail because: You are the assignee for the bug.