From nobody Thu Feb 5 14:37:48 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4f6KZN5d1Tz6QchP for ; Thu, 05 Feb 2026 14:37:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f6KZN50wLz3J6x for ; Thu, 05 Feb 2026 14:37:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770302268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uVzgrtMItJ1oaKswf32aLVkQmoVf6JGTUoWvn17USpY=; b=kZFC/THTlWGnLX58RdBp/NRNdUQElmYuI2ZUCFWUnlxw7vkDxD1hol4WeTYnEFsbw5JiTj A4s27JLj43SypuNDDPguthpf/9r64cxMJKGXv5Um7elUbokO3NTOMDkjNgxiNODnqroI6/ CU4+MQuGhg09dh9OTfqg9GjU7A9XnxCp1wLrdR6g4ceGpvyGoVg+v4ivsV5JrVU+aOggHw 2bj7gQZyZuXMMFDmCUyuvuQ/Tpm77Kjt8yX/trxq68ls5VtQzkG7FUCg18IQX956YvsOTC XgBKOr3400HOrD8Hr7+rsHIjRbNRrVE92N0iZmiwmS92jC0pnKi8TkNUVURAtQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770302268; a=rsa-sha256; cv=none; b=LoLDnlusL8kI8FuJoa1jndhXtRlfvdmlrSC8VHvBK/vi0rdTdlWDCPcBeXB6h5z2juS+FE 3XZrxIZM8eO/UpWYmTMoqgHlIFrFdg6rfZR2FdpkkbtDNerm6vIeiWim6V/xESCCNpejh5 +Qsdfbg2HYKm1CWDYosQe1bODj+gFADm07cVRr7UiLY95ATf+P3TqL3WoBaUs/yVZwdCEl ljQ3GqttaXTeZua5p1s19PTWdvI+rAvmcYwRqv7Csa6ZPbOAeOTx3DiSsoIOucPsO3z4RL T1vj+X1stpox4AwRPs6gSkiFpPngqtinRCQ1nE6T9TvLXhfm9+Ecs0Ih1RAbWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770302268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uVzgrtMItJ1oaKswf32aLVkQmoVf6JGTUoWvn17USpY=; b=Ca64TNXi4H6aSIaj4uP8j+lR571/O1lOiSxzmrUJK83pChv+94nrBBbXA97uPBSFFYzzGu qtTp/cHFfESakXrOBT6mUpETgXFtuygavpWGfXoWuniII2aRyX/6YqAL9eB9yDqlPZ/kVT NNdcfqXaPcSoC3tmJemoPM73CIkNZfoSSg2IZGxo+pRM0TGpCzJAamA3XiwYtZhHrTqw3K Hw2RDc1PmMfNFuDucWmb/0KqIPloqEzF4AgZXtH/0RGbOp0uae00Wbyie5jYMUVHV7VhAk rUdmgRnOtj/etE2ignZMLcnQ6s+I9GJ8QUtLMRLJpvfW33/mEksRUKkYyRHBbQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4f6KZN4bZHzZl4 for ; Thu, 05 Feb 2026 14:37:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 615EbmDs016581 for ; Thu, 5 Feb 2026 14:37:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 615EbmbR016580 for bugs@FreeBSD.org; Thu, 5 Feb 2026 14:37:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 291790] libc stub resolver no longer works without /etc/resolv.conf Date: Thu, 05 Feb 2026 14:37:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? mfc-stable13- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291790 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6b0a4d67a952e999c39ee21a5e50122b1= 3a6d391 commit 6b0a4d67a952e999c39ee21a5e50122b13a6d391 Author: Dag-Erling Sm=C3=B8rgrav AuthorDate: 2026-01-31 17:52:53 +0000 Commit: Dag-Erling Sm=C3=B8rgrav CommitDate: 2026-02-05 14:36:49 +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(-) --=20 You are receiving this mail because: You are the assignee for the bug.=