From owner-freebsd-questions@freebsd.org Sun Feb 28 16:00:02 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6AF5AB70FA for ; Sun, 28 Feb 2016 16:00:02 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1mail2513.mymailbank.co.uk (UK1MAIL2513-PERMANET.IE.mymailbank.co.uk [217.69.47.44]) by mx1.freebsd.org (Postfix) with ESMTP id 2579C100A for ; Sun, 28 Feb 2016 16:00:01 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp.lan.sohara.org (UnknownHost [88.151.27.41]) by uk1mail2513-d.mymailbank.co.uk with SMTP; Sun, 28 Feb 2016 15:59:49 +0000 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aa3l2-000NQk-QK for freebsd-questions@freebsd.org; Sun, 28 Feb 2016 15:59:44 +0000 Date: Sun, 28 Feb 2016 15:59:44 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Hosts Message-Id: <20160228155944.76633df9000e9d652630dd1a@sohara.org> In-Reply-To: <56D316D8.3040600@cloudzeeland.nl> References: <56D2C3E0.8030406@cloudzeeland.nl> <20160228101701.9697655568ffdad305ba9328@sohara.org> <56D316D8.3040600@cloudzeeland.nl> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 16:00:02 -0000 On Sun, 28 Feb 2016 16:48:40 +0100 JosC wrote: > > In een bericht van 28-2-2016 11:17: > > No because domain names are global in scope while MAC addresses are > > local. > > Mac addresses are unique (you can fake/clone them but that is another > topic discussion) - imho they therefore can be used globally as well? > But saying that, it is in my case not a problem to use them locally as > the issue concerns my local network. > > > You can set up DHCP to issue fixed addresses based on MAC. > I do use DHCP and fixed combined. Using this I am familiar with; my > issue is identifying hardware in a network that is partitially using DHCP. I'm suggesting making it easy by setting up DHCP to issue fixed addresses to the MACs you're interested in and then you can put those IP addresses in the hosts or DNS. Failing that a script to take the DHCP leases and a table of MACs and hostnames generate a hosts file insert and splice it in. I think issueing fixed addresses is easier. -- Steve O'Hara-Smith | Directable Mirror Arrays C:>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/