I have the standard
in /etc/nsswitch.conf, but it seems to be ignored.
/etc/hosts contains a line
but
If I delete the "dns" option from /etc/nsswitch.conf and even reboot, it makes no difference. What do I have to do to enable the
Code:
hosts: files dns
/etc/hosts contains a line
Code:
192.168.n.n xxxx.yyyy xxxx
host xxxx
produces:
Code:
host xxxx
xxxx has address 192.168.n.n
Host xxxx not found: 3(NXDOMAIN)
If I delete the "dns" option from /etc/nsswitch.conf and even reboot, it makes no difference. What do I have to do to enable the
host
command to accept the result from /etc/hosts and not query DNS?