Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2025 14:38:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 204927] libc resolver not stripping trailing dot for lookup in /etc/hosts
Message-ID:  <bug-204927-227-Qzrf5CvTWA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204927-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204927-227-Qzrf5CvTWA>