If your router can answer dns request ( many routers run dnsmasq service )
then you could have local name resolution working on all machines just by
pointing to your router for Dns.

If your router does that - just configure it that it hand out its own IP as
Dns during DHCP. You should also configure all the PCs not to change their
names by DHCP unless you want that. After that names should work for all
machines using DHCP for IP assignment.

The advantage here is that you do not have to hand maintain list of all
your machines and their IPs on all host all the time. If you use DHCP IPs
change every time you reboot/update router.

Tomas

On Fri, Mar 1, 2019, 2:30 PM Paul Heinlein <[email protected]> wrote:

> On Fri, 1 Mar 2019, Dick Steffens wrote:
>
> > Is there someplace I can put in the name of my local machines that will
> let
> > me use those names instead of IP addresses when using ssh or sftp?
>
> /etc/hosts
>
>
> --
> Paul Heinlein
> [email protected]
> 45°38' N, 122°6' W_______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to