Skip site navigation (1)Skip section navigation (2)
Date:      22 Dec 2000 08:07:20 -0600
From:      Tim Ayers <tayers@bridge.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   /etc/hosts and including domains
Message-ID:  <8zp835yf.fsf@tim.bridge.com>

next in thread | raw e-mail | index | archive | help
I am curious about the default contents of /etc/hosts. Right after I
install FreeBSD-4.1.1, I look in /etc/hosts and it contains something
like

  127.0.0.1               localhost
  192.168.196.2           janis.quaday.com janis
  192.168.196.2           janis.quaday.com.

I understand the localhost line. But I don't know the reasoning for
including "janis.quaday.com". Is the domain defined explicitly
anywhere when using DNS or is this (and the hostname= line in
/etc/rc.conf) the place where my domain is specified?

And I really don't understand what the "janis.quaday.com." is
doing. Why have the name including DNS 'root'? And why on a separate
line instead of just another alias on the same line?

Finally, what's the correct way to add the other local hosts to my
/etc/hosts? Like

  192.168.196.3           joan

or

  192.168.196.3           joan.quaday.com joan

Thanks for the enlightenment. Now back to figuring out my real
problems. ;-)

Hope you have a very nice day, :-)
Tim Ayers (tayers@bridge.com)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8zp835yf.fsf>