Unix Technical Forum

Can linux box support 2 host names / 2 ip addresses

This is a discussion on Can linux box support 2 host names / 2 ip addresses within the Linux Operating System forums, part of the Unix Operating Systems category; --> > Here is my problem: > I have two linux boxes, each with its own IP and hostname. Now ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 01-18-2008, 06:13 AM
Ratiu Petru
 
Posts: n/a
Default Re: Can linux box support 2 host names / 2 ip addresses

> Here is my problem:
> I have two linux boxes, each with its own IP and hostname. Now I want

to
> combine these two into one linux box, but still keep the two sets of

IP
> addresses and hostnames. For example, when I go to the web page, both
> hostnames should lead me to the same linux box after the combination.
> I prefer to use one NIC to listen to two IP addresses like setting

eth0 and
> eth0:0 to different IP address. What I have to do is to add the

hostname in
> the hosts file, is that right?
>

Nope.

I think it would be easier to make a list of the duplicated services
you want to have on the new box (web, mail, samba, dns, etc.) and find
a way to do it for each one. For example, web and mail support virtual
hosting. The DNS can handle multiple zones by itself. You can also do
the dual-Samba trick i explained in my previous post, and so on.

If you want to have people logging in on ssh and see a new environment,
you can do it with chrooted sshd, only you need to mount /proc in the
chroot, which by my opinion is too insecure. (the hostname stays the
same, as is the same kernel)

If you want separate '/proc's and hostnames, go for the vserver kernel
patch, at http://www.13thfloor.at/vserver/project/ . But i urge you to
reconsider your problem, because I don't want a newbie on my conscience
(kernel patching is a dangerous sport for beginners)

--
Petre.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:10 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com