Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-25-2004, 11:23 AM   #1
LQ Newbie
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0

can i use more than one hostname for a linux box with a single public ip address ?
i have a machine running redhat 9 with the public ip is connected through eth0. currently i set the hostname
can i use,, agaist this same ip address?
should i edit the /etc/hosts file or i need make vhost?

thanx in advance
Old 02-25-2004, 12:28 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
I think that you're misunderstanding something here.

What you're talking about must be host-lookup/
DNS entries ... You want other machines to know
that server under different names. That has nothing
to do with the machines hostname but with aliases
known to the rest of the net/world. If you want the
machine itself to be able to refer to itself by different
names you can edit the /etc/hosts on it, or set-up
DNS accordingly.

Old 02-25-2004, 04:49 PM   #3
LQ Newbie
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanx guru


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname gururaj Linux - Networking 2 01-05-2006 05:02 PM
hostname changes R153-Ab0V3 Linux - Newbie 6 01-10-2004 11:36 PM
Hostname jpauls104 Slackware 5 07-28-2003 12:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 07:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration