That does raise the question if the DNS name servers are configured.  That used 
to be in the /etc/resolv.conf, but not for some of the newer OS such as Ubuntu 
18.04.

-- 
Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the 
U.S. Department of Energy

Phone: 509.375.2687
Fax:       509.375.4399
Email: [email protected]

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Tomas 
Kuchta
Sent: Friday, March 1, 2019 2:53 PM
To: Portland Linux/Unix Group <[email protected]>
Subject: Re: [PLUG] Assigning a name to local machines

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
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to