On 10/12/19 2:50 PM, Ed Greshko wrote:
On 10/13/19 2:48 AM, Samuel Sieb wrote:
> Summary:
> In a default setup, host name resolution is, in order of priority:
> /etc/hosts/, mdns, and dns.
The order is controlled by the contents of /etc/nsswitch.conf. The
defaults are as discribed.
I was trying to reduce the complication a bit so I didn't mention that.
> You probably don't want to maintain a hosts file for all the
computers
> on your network, especially if you are using DHCP.
> DNS is generally way overkill and more work to manage.
> The easiest method is to use mdns, otherwise known as Bonjour on Macs
> and probably some other names. Use "hostnamectl set-hostname myname"
> to set a unique name on each computer. Make sure "avahi-daemon" is
> running (should be). Make sure you have "nss-mdns" installed (should
> be by default). Then you should be able to do "ping myname" (using
> whatever name you set earlier).
I'm not well versed in the use of mdns since some devices on my
networks don't utilized it. So, I tend to
setup a DNS server in the routers I use. This leads me to wonder if it
is possible to actually "ping myname".
I thought one needed "ping myname.local".
That is correct. I was confused by the DNS before when I thought this
was working. If you set your DNS domain to .local then I think it would
work.