-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2009-04-10 at 09:29 -0700, John Andersen wrote:
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)
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
I haven't bothered yet :-)
This will also allow your samba server to resolve other names and aliases.
Ah, that's interesting, I may do that.
This is a bind (named) issue, not a hosts file issue.
That part I know :-) I used "bambi" because that's one entry I have in hosts but not in named, to test a somewhat similar configuration to that of Randall and see for myself. But now I might add that configuration to named - hoping that vmware keeps the IPs it gives to different virtual machines stable, or configuring named might be a waste of time. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAknfpPUACgkQtTMYHG2NR9VNZgCeJHBQY+vaML2BkZJaebMKYeGr YxsAnjWPHIP3xNP7x260fwP9174NH5An =N7GG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org