From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 803FA385840F; Tue, 25 Jul 2023 17:16:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 803FA385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690305376; bh=e5lDMXP4Iz4q94/Jz6jkAWimZdL2C7OiEyiO12ZSKXw=; h=From:To:Subject:Date:From; b=cUuh+6XrhZytcfxgMOFJvgWWPGyJbbXpK+PNa/OqG+GyUoF7qg4CpR1v+ix2Tooe+ QEUkj7/jnLn7bR1mNG3lbK4S9FgI0pEXrIxeggHUk1GnKx2DU5Ppo9Mjx68ZFaN2W7 ymEjeODiFlcmTyWOKfzLey9+VnBYgNtq3NtwfUCg= From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/30683] New: Add environment override for /etc/resolv.conf path Date: Tue, 25 Jul 2023 17:16:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30683 Bug ID: 30683 Summary: Add environment override for /etc/resolv.conf path Product: glibc Version: 2.38 Status: NEW Severity: normal Priority: P2 Component: network Assignee: unassigned at sourceware dot org Reporter: carlos at redhat dot com Target Milestone: --- We support RESOLV_HOST_CONF to override /etc/hosts.conf, so it makes sense = to extend this to override /etc/resolv.conf. Possible options include a RESOLV_CONF environment variable. Example: RESOLV_CONF=3D/tmp/resolv.conf getent ahosts example.org Should this be a tunable that has an environment variable specified? e.g. GLIBC_TUNABLES=3Dglibc.resolv.conf=3D/tmp/resolv.conf It would have to be SXID_ERASE (default) IMO since AT_SECURE should not alt= er their resolver configurations and subprocesses should also consistently pro= duce the same resolution results as the parent process. --=20 You are receiving this mail because: You are on the CC list for the bug.=