Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2003 10:01:08 -0500
From:      "fbsd_user" <fbsd_user@a1poweruser.com>
To:        "Bryan Cassidy" <b_cassidy@bellsouth.net>, <freebsd-questions@freebsd.org>
Subject:   RE: hostname question
Message-ID:  <MIEPLLIBMLEEABPDBIEGIEHMEOAA.fbsd_user@a1poweruser.com>
In-Reply-To: <20031125185019.45791127.b_cassidy@bellsouth.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Assigning an Host name to your FBSD system.
Your FBSD operating system has internal software applications (like
sendmail for one) that needs to know the fully qualified domain name
of the PC it's running on. You do this by adding this option
statement   hostname=    to /etc/rc.conf.

This is the format to use.

thisPCname.fakeDOMAINname.tld


Where thisPCname came be any name you want to identify this
particular pc on your LAN. Since the goal is to build an FBSD
gateway server, the name of this PC should be gateway.

Where .fakeDOMAINname  can be any name you want as long as it's not
an registered domain name on the public internet unless it's
registered to you. Using FBSDyourlastname is an safe fake domain
name to use here. So if my name is Tom Jones, I would use fbsdjones.

Where .tld can be any of the standard TLD's currently in use. Such
as .com or .usa or .info or .cc, but since .com is the most commonly
used TLD, I recommend using .com

Gateway.fbsdjones.com is an very acceptable fake host name to use.

1. ee /ect/rc.conf                           edit file
2. add this option statement to file
	hostname="Gateway.fbsdjones.com"
3. save your changed file
4. reboot

When the reboot stops at the login prompt, the line displayed just
above it will now contain your host name you just added to rc.conf.


-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Bryan
Cassidy
Sent: Tuesday, November 25, 2003 7:50 PM
To: freebsd-questions@freebsd.org
Subject: hostname question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I got a quick question (just one for this minute).

I was told I should add a hostname. (my domain name maybe?
bsdjunky.dyndns.org? Will that do?) He said I should put an entry in
/etc/hosts that maps the IP of your box to the hostname you gave it.
Then put that hostname into main.cf. How would I go about adding a
hostname to /etc/hosts that maps the IP of my box? I use DHCP if
that
matters. Never added anything to /etc/hosts before so don't know the
syntax or anything about what I should add. Just add simply on the
first
line without any whitespaces bsdjunky.homeunix.org or something
else?

Thanks,
Bryan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/w/jL3TDgpNGRSLARAhtSAJ0cPwzWA+vVNKJaeCAF0B+B0+xTXACgwFC2
dZI7IPZ01EuGONY/kqOp+dI=
=H4Wk
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"



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