On Sun, 4 Jan 2009, Stefan Schmidt wrote:
in my understanding the /etc/hosts file should contain an entry with the FQDN
of the host.
184.108.40.206 hostname.domain.tld hostname
Yes, that is the proper format and order
I would for simplicity prefer to use a domain name instead of a FQDN.
220.127.116.11 domain.tld hostname
Don't do that, it'll bite you - eventually
In my DNS-configuration I can define an IP- address for both the domain name
and the subdomain.
domain.tld -> 18.104.22.168
subdomain.domain.tld -> 22.214.171.124
Yes you can, and this may, or may not come back to bite you
So both addresses are unambiguous. For what reason now would I need a FQDN?
Why wouldn't a domain name suffice?
What happens when you want/need to add another machine ?
Many network daemons/tools will query the available interfaces and
collect ip addrs/names... Allowing a hostname to also be the domain
name can cause problems.
* Knghtbrd assigns 3 to Chris
* variable wonders who else is named chris besides me
<Knghtbrd> variable - you. =>
* Knghtbrd waits for variable to dramatically say "I feel SO used!"
* variable ++
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org