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=/tmp/resolv.conf getent ahosts example.org Should this be a tunable that has an environment variable specified? e.g. GLIBC_TUNABLES=glibc.resolv.conf=/tmp/resolv.conf It would have to be SXID_ERASE (default) IMO since AT_SECURE should not alter their resolver configurations and subprocesses should also consistently produce the same resolution results as the parent process.