Carlos E. R. wrote:
On Thursday, 2009-04-09 at 10:38 -0700, Randall R Schulz wrote:
Regardless, it doesn't work.
Does anyone out there have working aliases for hosts on their LANs? If so, is there a trick? Some sort of magic incantation? Maybe a blood sacrifice of some sort I must make? (My cat draws blood from time to time, if that would count.)
For some strange reason I don't know about, the command "host" queries the dns server first, or only, while ping and other commands queries the file hosts first.
I have, in "/etc/hosts":
172.16.168.128 bambi
(a small windows under vmware)
then:
cer@nimrodel:~> host bambi Host bambi not found: 3(NXDOMAIN)
However:
cer@nimrodel:~> ping bambi PING bambi (172.16.168.128) 56(84) bytes of data.
- From 192.168.153.1: icmp_seq=1 Packet filtered
- From 192.168.153.1 icmp_seq=1 Packet filtered
- From 192.168.153.1 icmp_seq=2 Packet filtered
(which is correct as vmware is not running now)
-- Cheers, Carlos E. R.
Thats as it should be. If you want host command to work add a file to /etc/named.d/ for bambi and include it (or the meta include) in /etc/named.conf This will also allow your samba server to resolve other names and aliases. This is a bind (named) issue, not a hosts file issue. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org