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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > 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. |