On Fri, Feb 02, 2024 at 02:03:46PM -0700, Charles Curley wrote:
> root@hawk:~# host samba
> samba.localdomain is an alias for hawk.localdomain.
> hawk.localdomain has address 192.168.100.6

host(1) looks in DNS only.  It doesn't do the standard name resolution
that applications do.

> root@hawk:~# ping 192.168.100.6
> PING 192.168.100.6 (192.168.100.6) 56(84) bytes of data.
> 64 bytes from 192.168.100.6: icmp_seq=1 ttl=64 time=0.083 ms

> However, when I try to ping samba by host name:
> 
> root@hawk:~# ping samba
> PING samba (192.168.122.1) 56(84) bytes of data.

Note that this is a *different* IP address.

> # For the benefit of virtual machines.
> 192.168.100.12 apt-proxy
> 192.168.122.1 samba samba.localdomain

And that's where it came from (/etc/hosts).  If this IP address is
wrong, then it shouldn't be in here.

Reply via email to