Is there any way I can specify a custom resolv.conf
file (instead of /etc/resolv.conf
) in RedHat Linux, similar to specifying custom hosts file via export HOSTALIASES=~/my_hosts
? I don't have root access to the server.
Background:
I need my ldapsearch
command and hosts
command to use my custom resolv.conf file instead of the default /etc/resolv.conf
file
OS version: Red Hat Enterprise Linux Server release 6.9 (Santiago)