Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 May 2006 07:15:42 -0400
From:      "fbsd" <fbsd@a1poweruser.com>
To:        "Peter Michaux" <petermichaux@gmail.com>, "SM X" <smx624@gmail.com>, <freebsd-questions@freebsd.org>
Subject:   RE: setting host name during install?
Message-ID:  <MIEPLLIBMLEEABPDBIEGAEJAHHAA.fbsd@a1poweruser.com>
In-Reply-To: <3cbaf1c80605202116g2c29c231p33a24720130d576e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
First of all you are not the owner of the shawcable.net domain name
so you have no control over the DNS server to point
beastie.gv.shawcable.net to the ip address which is your pc.

Commerisal users have static ip address assigned to them by their
ISP.
Thay can then purchase & register an domain name to point to their
static ip address. And in this case that registered domain name
would
go in the hostname=  of rc.conf.

This is not your case. So you should follow this

Assigning a 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 the 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 of this Installation Guide
is to build a 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 a
registered domain name on the public Internet (unless of course it's
registered to you). Using FBSDyourlastname is a safe fake domain
name to use here. So if your name was Tom Jones, you should 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 a very acceptable fake host name to use.

ee /etc/rc.conf

and add this option statement to the file:


hostname="gateway.fbsdjones.com"


Save the changed file and ‘reboot’ your system for your edit changes
to take effect.

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.

Installer Note: If you have an official registered domain name that
you want to use for your email sendmail server, then use that in the
hostname= statement. Example, if my registered domain name was
cyberman.com then hostname=’cyberman.com’ is what I would code.


Now for the hostname to be found on the gateway box you will have to
add the hostname you coded to the /etc/hosts file.




-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Peter
Michaux
Sent: Sunday, May 21, 2006 12:17 AM
To: SM X; freebsd-questions@freebsd.org
Subject: Re: setting host name during install?


Hi,

Thanks for the info. I reversed what I had done and then used
sysinstall. Going through sysinstall let me enter
"beastie.gv.shawcable.net" as my host name. However when I try the
following two url's i get and unknown host.

http://beastie:3000/
http://beastie.gv.shawcable.net:3000/

Any other ideas?

Thanks,
Peter


On 5/20/06, SM X <smx624@gmail.com> wrote:
> For changing hostname (and/or IP), I found that the best way is to
use
> sysinstall and change it from there (Configure --> Networking -->
> Interfaces --> "your NIC"), since that one will change not only
> rc.conf file, but also the hosts file (so that your browser can
> actually resolve name beastie in the http request), and
potentially
> resolv.conf (where your name server entries (not in your case,
since
> you are on DHCP, therefore you get the DNS server entries
> automatically) are stored.
>
> Obviously, the remedy in your case is to manually edit the hosts
file
> and assign the appropriate values there.
>
> Or you can always just use http://localhost:3000 and that should
work.
> Hope this helps,
> smx
>
> P.S. I would not consider myself an expert, so , if I made any
> mistakes above, hopefully others will alert us all about those.
What I
> can tell you is that I did try the procedure above several times
and
> it was working for me.
>
> On 5/20/06, Peter Michaux <petermichaux@gmail.com> wrote:
> > Hi,
> >
> > During install, I don't quite understand the "host" parameter
that I
> > supplied for my networking configuration.
> >
> > I used DHPC and most of the parameters were filled in for me
> >
> > Host:
> > Domain: gv.shawcable.net
> > IPv4 Gateway: 192.168.0.1
> > Name server: 192.168.0.1
> > IPv4 Address: 192.168.0.103
> > Netmask: 255.255.255.0
> > Extra options to ifconfig (usually empty):
> >
> > When I pressed tab in the Host box it automatically filled in
with
> > ".gv.shawcable.net" which make sense since I have a cable modem
from
> > Shaw in Greater Victoria. But it seems like something should
have gone
> > before the first dot. Is there an opportunity here to give my
computer
> > a cool name like "beastie" so I can type things like
> > "http://beastie:3000" instead of "http://192.168.0.103:3000" ?
Or is
> > this host name supposed to be some server at my ISP?
> >
> > I changed the hostname using the following steps but I don't
know what
> > I really gained.
> >
> > 1. vi /etc/rc.conf
> > 2. change
> >      hostname=".gv.shawcable.net"
> >    to
> >      hostname="beastie"
> > 3. restart computer so change becomes reality.
> > 4. now the command prompt says root@beastie
> >
> > When I tried "http://beastie:3000" I ended up at the Beastie
Boys
> > website. Not the worst suprise but not what I was hoping for.
> >
> > Thanks,
> > Peter
> > _______________________________________________
> > 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"
> >
>
_______________________________________________
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?MIEPLLIBMLEEABPDBIEGAEJAHHAA.fbsd>