[PLUG] Assigning a name to local machines

Smith, Cathy Cathy.Smith at pnnl.gov
Fri Mar 1 22:58:54 UTC 2019


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: cathy.smith at pnnl.gov

-----Original Message-----
From: plug-bounces at pdxlinux.org <plug-bounces at pdxlinux.org> On Behalf Of Tomas Kuchta
Sent: Friday, March 1, 2019 2:53 PM
To: Portland Linux/Unix Group <plug at pdxlinux.org>
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 <heinlein at madboa.com> 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
> heinlein at madboa.com
> 45°38' N, 122°6' W_______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
_______________________________________________
PLUG mailing list
PLUG at pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


More information about the PLUG mailing list