[lug] set host name
Gordon Golding
gordongoldin at netscape.net
Tue Dec 6 17:00:07 MST 2005
Setting the host name.
When I look on the internet, there are so many variations, I figured I'd ask for input.
On Fedora Core 4:
I install and check "set hostname via DHCP".
In the local environment, anybody without a static address gets a default name made out of their IP address.
I put the same server out into a less sophisticated environment and it ends up with "localhost".
When I do a Java function to get the IP, it gets it via the hostname and returns 127.0.0.1
So I need to set the host name.
On a machine where hostname isn't set, I have this in /etc/hosts:
127.0.0.1 localhost.localdomain localhost
On a machine where I set it to myhost manually at install; etc/hosts:
127.0.0.1 myhost localhost.localdomain localhost
Is it that easy? Add "myhost<TAB>" before localhost.localdomain?
--
Gordon Golding
aka Golding the Younger DH70
gordongoldin at netscape.net
http://cslr.colorado.edu/beginweb/cgi-bin/gen_page.php?user=goldingg&&group=STF
303-494-5730
"If Love is Blind, why is lingerie so popular?"
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
More information about the LUG
mailing list