There are four man pages for dhclient, a man page for nm-settings-ifcfg-rh and also /usr/share/doc/initscripts/sysconfig.txt but nothing mentions that if you put RES_OPTIONS = rotate into /etc/sysconfig/network that /usr/sbin/dhclient-script will add options rotate to /etc/resolv.conf. There is an indication in the resolv.conf(5) man page that RES_OPTIONS comes from the environment but it does not mention how to set RES_OPTIONS into the environment. There is an indication in the nm-settings-ifcfg-rh(5) man page that RES_OPTIONS is an Ifcfg-rh variable but nothing about the fact that you set RES_OPTIONS in /etc/sysconfig/network.
You can see that it does by examining /usr/sbin/dhclient-script
if [ -f /etc/sysconfig/network ]; then
. /etc/sysconfig/network
fi
... skip backward to the function definition: make_resolv_conf() ...
if [ -n "${RES_OPTIONS}" ]; then
echo "options ${RES_OPTIONS}" >> "${rscf}"
fi
There is a section in /usr/share/doc/initscripts/sysconfig.txt named /etc/sysconfig/network so that would make a good place for documentation about the RES_OPTIONS.
There are four man pages for
dhclient
, a man page fornm-settings-ifcfg-rh
and also/usr/share/doc/initscripts/sysconfig.txt
but nothing mentions that if you putRES_OPTIONS = rotate
into/etc/sysconfig/network
that/usr/sbin/dhclient-script
will addoptions rotate
to/etc/resolv.conf
. There is an indication in the resolv.conf(5) man page thatRES_OPTIONS
comes from the environment but it does not mention how to setRES_OPTIONS
into the environment. There is an indication in the nm-settings-ifcfg-rh(5) man page thatRES_OPTIONS
is anIfcfg-rh variable
but nothing about the fact that you setRES_OPTIONS
in/etc/sysconfig/network
.You can see that it does by examining
/usr/sbin/dhclient-script
There is a section in
/usr/share/doc/initscripts/sysconfig.txt
named/etc/sysconfig/network
so that would make a good place for documentation about theRES_OPTIONS
.