Просьба разьяснить ситуацию.
Файл /etc/hosts:
127.0.0.1 localhost
192.168.100.3 slon
Файл /etc/host.conf
order hosts
То бишь как я понимаю при разрешении slon или 192.162.100.3
ни в какой DNS, лезть вообще не надо, т.к. вся информация
находится в /etc/hosts.
И ping все нормально отрабатывает и slon и 192.168.100.3
[tema@slon tema]$ ping slon
PING slon (192.168.100.3) from 192.168.100.3 : 56(84) bytes of data.
64 bytes from slon (192.168.100.3): icmp_seq=0 ttl=255 time=0.6 ms
[tema@slon tema]$ ping 192.168.100.3
PING 192.168.100.3 (192.168.100.3) from 192.168.100.3 : 56(84) bytes of data.
64 bytes from slon (192.168.100.3): icmp_seq=0 ttl=255 time=0.6 ms
А вот след. вариант не проходит
[tema@slon tema]$ host slon
Host not found, try again.
[tema@slon tema]$ host 192.168.100.3
Host not found, try again.
В чем дело?