[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FQDN vs. domain in /etc/hosts



On Sun, 4 Jan 2009, Stefan Schmidt wrote:

Hello,

Howdy

in my understanding the /etc/hosts file should contain an entry with the FQDN of the host.

123.123.123.123 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.

123.123.123.123 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 -> 123.123.123.123
subdomain.domain.tld -> 123.123.123.123

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.

--
Rick Nelson
* 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> Knghtbrd: :)
* variable ++
<variable> :)


Reply to: