woody, nsswitch.conf/hosts.conf ignoring /etc/hosts
On my woody box, I have an entry in /etc/hosts that looks like this:
10.1.1.1 foo.bar.com foo
There's also a record in dns for "foo.bar.com" that instead points to
10.1.1.2 -- I'm trying to explictely OVERRIDE that by making the
/etc/hosts entry, so I have "hosts: files dns" in nsswitch.conf and
"order hosts,bind" in host.conf.
... the manpages indicate this should work.
If I "ping foo.bar.com" it pings 10.1.1.1. But if I "telnet
foo.bar.com" or "rsync foo.bar.com::" it goes to 10.1.1.2.
I'm wondering if this is somehow related:
http://sources.redhat.com/ml/libc-alpha/2000-11/msg00172.html
Any clues?
--
thanks,
Will
Reply to: