Forum archive
How do I set the domain?
I'm new to both turnkey and debian, I'd like to add my VM to my domain. i.e. core.localdomain.co.uk would be it's FQDN
I've set /etc/hostname to core
I've set /etc/hosts to 127.0.0.1 core.localdomain.co.uk core localhost
However the domainname command still returns (none) which is puzzling me.
On Gentoo I just modify /etc/conf.d/net and add dns_domain_lo="localdomain.co.uk" and nis_domain_lo="localdomain.co.uk", restart and voila it works.
I know this is a newbie question, so I do apologize, I just couldn't find a simple answer to this on google.
So assuming that you have a local DNS server (that handles DNS queries for localdomain.co.uk) then you just need to add an 'A' record in there that points your server name (core) to it's IP. Then all should be well...