On Sun, Aug 08, 2010 at 05:03:15PM +0100, Tim Green wrote:
On 8 August 2010 16:51, Chris G cl@isbd.net wrote:
On Sun, Aug 08, 2010 at 02:00:34PM +0100, Tim Green wrote:
On 8 August 2010 13:46, Chris G cl@isbd.net wrote:
What do others here have in their /etc/hosts file? I.e. do you have an entry for the name of the system in /etc/hosts as well as specifying it in /etc/hostname?
I have: 127.0.1.1 timspc
Not sure if that was me or Ubuntu 10.04, but it seems to work fine.
... and do you have other computers on the local network which can refer to 'timspc' by name (or vice versa)?
That's the annoying part - no. The Windows PCs on the network sometimes work by SMB magic, but that's not always reliable. The best solution seems to be to combine DHCP and DNS in one server on the network that automatically adds local PCs to the local DNS, and preferably that server is the router.
Ah! :-)
It seems I'm back to my existing/original solution then. I have a little Linux (Ubuntu 10.04 server) system running on an Acer Aspire Revo which provides DHCP and DNS services by running dnsmasq. That works pretty well and enables one to just connect a system to the network and it will get its IP address *and* can be referred to by its name without any hassle.
It's just that I was hoping that I could turn the Acer off as it does little else now as I have moved the web server and mail server to a more powerful system.