Small (SoHo) LAN, how to manage local DNS etc.?
What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN?
I have a small LAN running at home with, at this precise moment, eight devices on the LAN. These comprise (usually) three or four computers running xubuntu, a windows computer, a printer, a DECT phone base station and the NAT router that connects them all to the internet. I need a manageable way to handle these by assigning IP addresses (i.e. DHCP) and providing name services (i.e. DNS) such that I can use names for the various systems. So how should one manage this sort of a system? I can run DHCP on the NAT router but that doesn't provide DNS for the LAN so I don't get names for my systems. How do people handle this sort of thing? Do you just set (for example) printers up with static addresses and put them in /etc/hosts? That's not very flexible and means that visitors can't see the printer. Is there a better way? -- Chris Green -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On 9 October 2012 10:49, Chris Green <cl@isbd.net> wrote:
> What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN? > > I have a small LAN running at home with, at this precise moment, eight > devices on the LAN. These comprise (usually) three or four computers > running xubuntu, a windows computer, a printer, a DECT phone base > station and the NAT router that connects them all to the internet. > > I need a manageable way to handle these by assigning IP addresses (i.e. > DHCP) and providing name services (i.e. DNS) such that I can use names > for the various systems. > > So how should one manage this sort of a system? I can run DHCP on the > NAT router but that doesn't provide DNS for the LAN so I don't get names > for my systems. How do people handle this sort of thing? Do you just > set (for example) printers up with static addresses and put them in > /etc/hosts? That's not very flexible and means that visitors can't see > the printer. Is there a better way? You should be able to refer to the machines by <name>.local. So for example if the machine name is piglet then piglet.local should work. This is provided by avahi apparently. In addition you may find it helpful to allocate fixed ip addresses to each machine so that ssh does not complain if you use keys to access the machines. Most routers have a means of using dhcp but allocating a fixed address to each machine based on MAC address. Colin -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On Tue, Oct 09, 2012 at 11:01:45AM +0100, Colin Law wrote:
> On 9 October 2012 10:49, Chris Green <cl@isbd.net> wrote: > > What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN? > > > > I have a small LAN running at home with, at this precise moment, eight > > devices on the LAN. These comprise (usually) three or four computers > > running xubuntu, a windows computer, a printer, a DECT phone base > > station and the NAT router that connects them all to the internet. > > > > I need a manageable way to handle these by assigning IP addresses (i.e. > > DHCP) and providing name services (i.e. DNS) such that I can use names > > for the various systems. > > > > So how should one manage this sort of a system? I can run DHCP on the > > NAT router but that doesn't provide DNS for the LAN so I don't get names > > for my systems. How do people handle this sort of thing? Do you just > > set (for example) printers up with static addresses and put them in > > /etc/hosts? That's not very flexible and means that visitors can't see > > the printer. Is there a better way? > > You should be able to refer to the machines by <name>.local. So for > example if the machine name is piglet then piglet.local should work. > This is provided by avahi apparently. It doesn't actually work though, at least not on my system as at present set up. I have tried on both my desktop computer and my laptop computer, the desktop's hostname is 'chris' the laptop's is 'acer-aspire':- chris$ host chris.local Host chris.local not found: 3(NXDOMAIN) chris$ root@acer-spire# host chris.local Host chris.local not found: 3(NXDOMAIN) root@acer-spire# Anyway I'd really prefer to call a computer 'chris' by that name rather than 'chris.local'. (I have checked, the avahi-daemon is running on both the above machines) > In addition you may find it > helpful to allocate fixed ip addresses to each machine so that ssh > does not complain if you use keys to access the machines. Most > routers have a means of using dhcp but allocating a fixed address to > each machine based on MAC address. > That's a "specific to ssh" issue which, while significant, isn't really central to my requirements. -- Chris Green -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On 9 October 2012 11:36, Chris Green <cl@isbd.net> wrote:
> On Tue, Oct 09, 2012 at 11:01:45AM +0100, Colin Law wrote: >> On 9 October 2012 10:49, Chris Green <cl@isbd.net> wrote: >> > What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN? >> > >> > I have a small LAN running at home with, at this precise moment, eight >> > devices on the LAN. These comprise (usually) three or four computers >> > running xubuntu, a windows computer, a printer, a DECT phone base >> > station and the NAT router that connects them all to the internet. >> > >> > I need a manageable way to handle these by assigning IP addresses (i.e. >> > DHCP) and providing name services (i.e. DNS) such that I can use names >> > for the various systems. >> > >> > So how should one manage this sort of a system? I can run DHCP on the >> > NAT router but that doesn't provide DNS for the LAN so I don't get names >> > for my systems. How do people handle this sort of thing? Do you just >> > set (for example) printers up with static addresses and put them in >> > /etc/hosts? That's not very flexible and means that visitors can't see >> > the printer. Is there a better way? >> >> You should be able to refer to the machines by <name>.local. So for >> example if the machine name is piglet then piglet.local should work. >> This is provided by avahi apparently. > > It doesn't actually work though, at least not on my system as at present > set up. I have tried on both my desktop computer and my laptop > computer, the desktop's hostname is 'chris' the laptop's is > 'acer-aspire':- > > chris$ host chris.local > Host chris.local not found: 3(NXDOMAIN) What does ping chris.local show. Also avahi-browse -at > chris$ > > root@acer-spire# host chris.local > Host chris.local not found: 3(NXDOMAIN) > root@acer-spire# > > Anyway I'd really prefer to call a computer 'chris' by that name rather > than 'chris.local'. (I have checked, the avahi-daemon is running on > both the above machines) Can't help that I am afraid. Sorry. > > >> In addition you may find it >> helpful to allocate fixed ip addresses to each machine so that ssh >> does not complain if you use keys to access the machines. Most >> routers have a means of using dhcp but allocating a fixed address to >> each machine based on MAC address. >> > That's a "specific to ssh" issue which, while significant, isn't really > central to my requirements. Agreed, I thought it might be helpful though. Colin -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On Tue, Oct 09, 2012 at 11:43:51AM +0100, Colin Law wrote:
> On 9 October 2012 11:36, Chris Green <cl@isbd.net> wrote: > >> You should be able to refer to the machines by <name>.local. So for > >> example if the machine name is piglet then piglet.local should work. > >> This is provided by avahi apparently. > > > > It doesn't actually work though, at least not on my system as at present > > set up. I have tried on both my desktop computer and my laptop > > computer, the desktop's hostname is 'chris' the laptop's is > > 'acer-aspire':- > > > > chris$ host chris.local > > Host chris.local not found: 3(NXDOMAIN) > > What does ping chris.local show. Also > avahi-browse -at > OK, you're right, "ping chris.local" does work (as do most other things like "ssh chris.local"). However I'd really prefer "ping chris" to work. -- Chris Green -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users Tue Oct 9 13:30:01 2012 Return-Path: <devel-bounces@lists.fedoraproject.org> X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eagle542.startdedicated.com X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MAT CHES_RCVD,SPF_PASS, T_DKIM_INVALID autolearn=ham version=3.3.2 X-Original-To: tom@linux-archive.org Delivered-To: tom-linux-archive.org@eagle542.startdedicated.com Received: from bastion.fedoraproject.org (bastion01.fedoraproject.org [209.132.181.2]) by eagle542.startdedicated.com (Postfix) with ESMTP id 1847C20E007A for <tom@linux-archive.org>; Tue, 9 Oct 2012 13:00:50 +0200 (CEST) Received: from lists.fedoraproject.org (collab03.vpn.fedoraproject.org [192.168.1.70]) by bastion01.phx2.fedoraproject.org (Postfix) with ESMTP id 0B3F620D7D; Tue, 9 Oct 2012 11:00:47 +0000 (UTC) Received: from collab03.fedoraproject.org (localhost [127.0.0.1]) by lists.fedoraproject.org (Postfix) with ESMTP id A264C40785; Tue, 9 Oct 2012 11:00:46 +0000 (UTC) X-Original-To: devel@lists.fedoraproject.org Delivered-To: devel@lists.fedoraproject.org Received: from smtp-mm01.fedoraproject.org (smtp-mm01.fedoraproject.org [80.239.156.217]) by lists.fedoraproject.org (Postfix) with ESMTP id 2C37840785 for <devel@lists.fedoraproject.org>; Tue, 9 Oct 2012 11:00:45 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by smtp-mm01.fedoraproject.org (Postfix) with ESMTP id 58B7BC0425 for <devel@lists.fedoraproject.org>; Tue, 9 Oct 2012 11:00:44 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id hq7so3823325wib.2 for <devel@lists.fedoraproject.org>; Tue, 09 Oct 2012 04:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=S68iD27qNV4D/H/lKlM6bSQeof7uxN39/Nel7Lakl5w=; b=BZaONkXztlMnJVuStT8JQS6RGyEgPy/2xym9VbBvlXoOwc5OxpCEh9t77CuAQMYcVG 12Dwaago3/LKF+oWxPvP3uT7z/NIlRR97TsJuORsMQbuQN+15FWsoQYfvpTYacuGK70N 67qMfE65ma0ORzzYJ12x7hiWz66clnMhYB4/RSSdyCYcCucY9c8/T5pBkiMo8V6RlDZF J6zMUW0ArVSjKv9VU59m/Dsbad8kAxNoWG+FlUz2gugqpFSQh6+mHGXAdEzCooUHvCaN +thW/D7tuyAF2ArSIo+OKUqe9Zx8NLEdSLj43JZrTBR+BoH8YEWiS0M rjw8n4IZpIspI YyZQ== Received: by 10.180.99.194 with SMTP id es2mr3790456wib.15.1349780443670; Tue, 09 Oct 2012 04:00:43 -0700 (PDT) Received: from localhost.localdomain ([217.28.190.130]) by mx.google.com with ESMTPS id b7sm24383762wiz.3.2012.10.09.04.00.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 04:00:43 -0700 (PDT) Message-ID: <50740365.7050000@gmail.com> Date: Tue, 09 Oct 2012 10:58:45 +0000 From: =?UTF-8?B?IkrDs2hhbm4gQi4gR3XDsG11bmRzc29uIg==?= <johannbg@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: devel@lists.fedoraproject.org Subject: Re: systemd requires HTTP server and serves QR codes References: <slrnk75q1g.afo.ppisar@dhcp-0-146.brq.redhat.com> <20121008153059.GA27284@tango.0pointer.de> <CAM+Wa1eFCauqcr-2J-THt5MjQkBYPBT0KnH6Bv0MmsCJ7bV_tA@mail.gmail.com> <20121008221440.GB15931@tango.0pointer.de> <5073FB43.1060402@redhat.com> In-Reply-To: <5073FB43.1060402@redhat.com> X-BeenThere: devel@lists.fedoraproject.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Development discussions related to Fedora <devel@lists.fedoraproject.org> List-Id: Development discussions related to Fedora <devel.lists.fedoraproject.org> List-Unsubscribe: <https://admin.fedoraproject.org/mailman/options/devel>, <mailto:devel-request@lists.fedoraproject.org?subject=unsubscrib e> List-Archive: <http://lists.fedoraproject.org/pipermail/devel/> List-Post: <mailto:devel@lists.fedoraproject.org> List-Help: <mailto:devel-request@lists.fedoraproject.org?subject=help> List-Subscribe: <https://admin.fedoraproject.org/mailman/listinfo/devel>, <mailto:devel-request@lists.fedoraproject.org?subject=subscribe> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: devel-bounces@lists.fedoraproject.org Errors-To: devel-bounces@lists.fedoraproject.org T24gMTAvMDkvMjAxMiAxMDoyNCBBTSwgTWlsYW4gQnJveiB3cm 90ZToKPiBCdXQgdGhlICJtaW5p bWFsIGluc3RhbGwiICh3aGF0ZXZlciBpdCBtZWFucykgaXMgb2 Z0ZW4gdXNlZCBhcyBiYXNlIGZv ciB2YXJpb3VzCj4gYXV0b21hdGljIGFwcGxpYW5jZSBpbnN0YW xscywgdGVzdCBzeXN0ZW1zIGV0 YyB3aGVyZSB5b3Ugd2FudCB0byBtaW5pbWl6ZQo+IHNlcnZpY2 VzIGFuZCBpbnN0YWxsZWQgbGli cmFyaWVzIChlaXRoZXIgYmVjYXVzZSBvZiAic2VjdXJpdHkiIG 9yIGJlY2F1c2UKPiB5b3UgbmVl ZCBzaW1wbGUgdGVzdGJlZCBmb3IgZGV2ZWxvcG1lbnQuKQoKQX MgeW91IHBvaW50cyBvdXQgIm1p bmltYWwgaW5zdGFsbCIgbWVhbnMgZGlmZmVyZW50IHRoaW5nIH RvIGVhY2ggb2YgdXMgCmZvciBl eGFtcGxlIHRvIG1lIGl0IHNob3VsZCBiZSBub3RoaW5nIG1vcm UgdGhlbiB0aGUgQ29yZU9TIGl0 c2VsZiB3aXRoIAptaW5pbWFsIHNldCBvZiB0b29scyBhbmQgYW 4gaW5zdGFsbC91cGRhdGUgYXBw bGljYXRpb24gKCB5dW0gKQoKRG9lcyByZWxlbmcvZmVzY28gaG F2ZSBpdCBkb2N1bWVudGVkIHNv bWV3aGVyZSB3aGF0IHRoZXkgY29uc2lkZXJlZCB0byAKYmUgdG hlIG1pbmltYWwgaW5zdGFsbCBz ZXQgYW5kIHdoeSB0aGV5IGhhdmUgY2hvc2VuIHRvIGluY2x1ZG VkIHRvIHNvbWUgCm9mIHVzIHF1 ZXN0aW9uYWJsZSBwYWNrYWdlcyBhcyBwYXJ0IG9mIHRoYXQgbW luaW1hbCBpbnN0YWxsIHNldC4K Ckxpa2UgdG8gbWUgcnN5c2xvZyBzaW5jZSB0aGUgam91cm5hbC BpcyBhbiBpbnRlZ3JhdGVkIHBh cnQgb2Ygc3lzdGVtZC4KCkpCRwotLSAKZGV2ZWwgbWFpbGluZy BsaXN0CmRldmVsQGxpc3RzLmZl ZG9yYXByb2plY3Qub3JnCmh0dHBzOi8vYWRtaW4uZmVkb3JhcH JvamVjdC5vcmcvbWFpbG1hbi9s aXN0aW5mby9kZXZlbA== |
Small (SoHo) LAN, how to manage local DNS etc.?
On Tue, Oct 09, 2012 at 10:49:38AM +0100, Chris Green wrote:
> What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN? > > I have a small LAN running at home with, at this precise moment, eight > devices on the LAN. These comprise (usually) three or four computers > running xubuntu, a windows computer, a printer, a DECT phone base > station and the NAT router that connects them all to the internet. > > I need a manageable way to handle these by assigning IP addresses (i.e. > DHCP) and providing name services (i.e. DNS) such that I can use names > for the various systems. > > So how should one manage this sort of a system? I can run DHCP on the > NAT router but that doesn't provide DNS for the LAN so I don't get names > for my systems. Why doesn't your NAT router provide DNS for the LAN? > How do people handle this sort of thing? Set up DNS on the router. I believe home routers (at least newer ones) automatically export DHCP names via DNS -- which works if your DHCP clients supply their names to the DHCP servers. I don't remember if Ubuntu does that; I remember that the dhcp3-client package in Debian didn't used to do that a while ago. Alternatively, all consumer home routers I've seen have a web interface for assigning static IPs by MAC address and for defining local DNS name -> IP mappings. This is manual and tedious. And of you've got a Linux box as your router (or, e.g. OpenWRT on your embedded router box) you can dnsmasq on it to provide DNS and DHCP (with static mappings defined by /etc/hosts and /etc/ethers). Marius Gedminas -- I would suggest re-naming "rmbdd()". I _assume_ that "dd" stands for "data dependent", but quite frankly, "rmbdd" looks like the standard IBM "we lost every vowel ever invented" kind of assembly lanaguage to me. -- Linus Torvalds -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On Tue, Oct 09, 2012 at 03:38:01PM +0300, Marius Gedminas wrote:
> On Tue, Oct 09, 2012 at 10:49:38AM +0100, Chris Green wrote: > > What's the "Ubuntu" way to manage DNS etc. on a small Home/Office LAN? > > > > I have a small LAN running at home with, at this precise moment, eight > > devices on the LAN. These comprise (usually) three or four computers > > running xubuntu, a windows computer, a printer, a DECT phone base > > station and the NAT router that connects them all to the internet. > > > > I need a manageable way to handle these by assigning IP addresses (i.e. > > DHCP) and providing name services (i.e. DNS) such that I can use names > > for the various systems. > > > > So how should one manage this sort of a system? I can run DHCP on the > > NAT router but that doesn't provide DNS for the LAN so I don't get names > > for my systems. > > Why doesn't your NAT router provide DNS for the LAN? > It just doesn't (it's a Draytek Vigor 2820n, excellent in many ways but doesn't do local DNS). In fact a Google search suggests that quite a lot of newer routers are like mine, they *don't* provide local name-based DNS. > > How do people handle this sort of thing? > > Set up DNS on the router. > See above, doesn't work on my Draytek Vigor. > I believe home routers (at least newer ones) automatically export DHCP > names via DNS -- which works if your DHCP clients supply their names to > the DHCP servers. I don't remember if Ubuntu does that; I remember that > the dhcp3-client package in Debian didn't used to do that a while ago. > > Alternatively, all consumer home routers I've seen have a web interface > for assigning static IPs by MAC address and for defining local DNS name > -> IP mappings. This is manual and tedious. > I have exactly that *except* for the names. I.e. I can set a fixed IP address for each MAC address in the router but I can't set the associated name. ... and don't recommend that I use another router! :-) The 2820n is, as I said, excellent in most ways and can do one thing that very few other (reasonable cost) routers can do - it load balances two WAN connections which is very important for me. -- Chris Green -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
> So how should one manage this sort of a system? I can run DHCP on the
> NAT router but that doesn't provide DNS for the LAN so I don't get > names for my systems. There are firewall distros that provide excellent dhcp, and local dns naming services. I can ping any PC on my lan by using its simple name. And I run one in a virtual machine on a fileserver so it doesn't require a dedicated computer. There are also dhcp and dns services you can install on any PC on your lan. I especially like Windows Server running in a VM for this, just because of the great gui, but any linux/bsd/whatever based machine can do this as well. It basically comes down to a machine that's running 24/7 on your lan. And there must be some soho routers that can provide the same services. Although it a lot of work, there are routers that can have a distro burned to its rom to replace its OS with a *nix based OS like openwrt. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
On Tue, Oct 09, 2012 at 10:35:50AM -0600, compdoc wrote:
> > So how should one manage this sort of a system? I can run DHCP on the > > NAT router but that doesn't provide DNS for the LAN so I don't get > > names for my systems. > > There are firewall distros that provide excellent dhcp, and local dns naming > services. I can ping any PC on my lan by using its simple name. And I run > one in a virtual machine on a fileserver so it doesn't require a dedicated > computer. > I was wondering about that approach, running a virtual machine to provide DHCP/DNS, any pointers to Howtos? > There are also dhcp and dns services you can install on any PC on your lan. > I especially like Windows Server running in a VM for this, just because of > the great gui, but any linux/bsd/whatever based machine can do this as well. > It basically comes down to a machine that's running 24/7 on your lan. > Yes, but the issue now is that Ubuntu 12.04 is *already* running dsnmasq so running another dnsmasq isn't too clever. > And there must be some soho routers that can provide the same services. > Although it a lot of work, there are routers that can have a distro burned > to its rom to replace its OS with a *nix based OS like openwrt. > As I've explained that's really where my problem comes from, my Draytek Vigor *doesn't* provide local DNS. -- Chris Green -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
Small (SoHo) LAN, how to manage local DNS etc.?
> Yes, but the issue now is that Ubuntu 12.04 is *already* running dsnmasq
so running another dnsmasq isn't too clever. " Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server." Is your Ubuntu 12.04 box running 24/7, and do you have all your clients pointing to it for DNS and DHCP? I guess clever would be making it work for you... -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 02:13 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.