I have a CNAME record in the zone file at the hosting provider that hosts isbd.net so that home.isbd.net has the address 84-45-228-40.no-dns-yet.enta.net which is my home machine (via ADSL).
So far so good, it all does basically what I want so that I can 'ssh home.isbd.net' and log in to my home machine and http://home.isbd.net in a browser gets to see the apache web pages on my home machine.
However I still don't seem to have the 'local' setup fully sorted, i.e. how do I get things on my local intranet to work totally correctly? As it is things work but there are some 'infelicities'.
In particular apache when it starts up has the message about "Could not reliably determine the server's fully qualified domain name ...." and I'd like to know the proper way to get the result of 'hostname' to be right.
My home network is behind a router and most machines have static IP addresses in the 192.168.1 range, the router is set up to allow ssh and http through (with limitations).
In my /etc/hosts file I have:-
127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.1.1 home home.isbd.net 192.168.1.5 garage 192.168.1.10 chris 192.168.1.40 netpr 192.168.1.44 hp7310 HPEDDBB7 HP000D9D068F7D 192.168.1.254 speedtouch
Searching in google suggests that I need to add my proper hostname (i.e. home.isbd.net) to the 127.0.0.1 line in /etc/hosts but that sounds like it's incompatible with the 192.168.1.1 line.
I want to end up in a situation where:-
/bin/hostname returns 'home' (as opposed to home.isbd.net, so that my prompts and window titles are sensible)
home.isbd.net is a valid address on my local network and connects to the linux server machine
There are no complaints from apache (or others) at startup