Hey everyone,
I've been using a small server for my LAN for a little while now. It has Trustix Secure Linux 2.0 on it. Before now, I never bothered to configure the /etc/hosts file.
Now, I completely don't understand what's going wrong. My /etc/hosts file looks like this:
Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.196 server1.lan
Now, I can query outside names with the hosts command, like "host google.com". But, "host server1.lan" or even "host localhost" doesn't work.
/etc/resolv.conf has my ISP's DNS servers. /etc/host.conf has "order hosts,bind"
Last, /etc/nsswitch.conf has "hosts: files nisplus dns"
Why doesn't my hosts file work!?
Thanks in advance,
Mike