Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Feb 2026 14:36:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 291790] libc stub resolver no longer works without /etc/resolv.conf
Message-ID:  <bug-291790-227-IttbrxX9Hf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-291790-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=291790

--- Comment #11 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=c137555c3f39a7defa61c53e357d83638bec8c66

commit c137555c3f39a7defa61c53e357d83638bec8c66
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-01-31 17:52:53 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-02-05 14:36:19 +0000

    libc/resolv: Switch default to loopback address

    If no resolver configuration was found, we would fall back to INADDR_ANY
    and IN6ADDR_ANY.  This made sense when it was first written thirty or
    forty years ago but not today, especially since connecting to INADDR_ANY
    or IN6ADDR_ANY is no longer supported.  Switch to the loopback address
    and simplify the code.

    Note that (as the pre-existing comment in the code states) running
    without a resolver configuration is not really supported.  Still, if
    we're going to have a hardcoded fallback, it might as well work.

    PR:             291790
    MFC after:      1 week
    Reviewed by:    kevans
    Differential Revision:  https://reviews.freebsd.org/D55011

    (cherry picked from commit 1538284a5fddfce546db678cb873b7edc6adb9ed)

 lib/libc/resolv/res_init.c | 67 ++++++++++++++++++----------------------------
 1 file changed, 26 insertions(+), 41 deletions(-)

-- 
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-291790-227-IttbrxX9Hf>