order for resolution -> hosts vs dns

Jeffrey Pyne plug-discuss@lists.plug.phoenix.az.us
Thu, 21 Feb 2002 16:57:59 -0700


On RedHat 7.1 (and Solaris, too), edit /etc/nsswitch.conf and change the
line that reads "hosts:  files nisplus dns" to read something like "hosts:
dns [!UNAVAIL=return] files".  See the nsswitch.conf(5) manpage for more
info.

~Jeff

On Thursday, February 21, 2002, Mike wrote:

> How do you change the order which a host resolves a name
> from hosts 1st , dns 2nd to dns 1st, hosts 2nd?