This is cool...a better way than I was thinking...I would still like to 
avoid having to back to the sysadmin and grovel for more ip #s...I tried 
making them up but that ain't going anywhere (just kidding)
kp

-----Original Message-----
From:   Darren Petersen [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, February 07, 2000 2:13 PM
To:     [EMAIL PROTECTED]
Subject:        Re: [midgard] trying to get dns and midgard to agree on multiple 
  namessites

Are you running Linux? I'm running RedHat 6.1, and it's fairly easy to set 
up IP
aliasing.  Your network card is called eth0.
The format of the command is like so:
ifconfig device ip_address

for example

ifconfig eth0:0 192.168.1.2

That command tells the kernel to bind 192.168.1.2 to eth0, creating a 
virtual
interface called eth0:0. Other aliases (virtual network interfaces) are 
called
eth0:1, eth0:2, and so on.

You have to add them to your route table so you type:

route add 192.168.1.2 (or whatever your ip address is)

That's it.  You probably want to include these commands in a script that 
gets called
at startup so your aliases come back next time you have to reboot, like so:

#!/bin/sh

ifconfig eth0:0 192.168.1.2
route add 192.168.1.2


I find these tricks very handy, and it saves you having funny urls with 
port numbers
which look odd to non geeks.  Also, some firewalls don't handle web servers 
on
non-standard ports gracefully.  Anyway, I like the IP alias thing.  I hope 
this
helps

Darren Petersen


That's all folks.

Darren Petersen
Ken Pooley wrote:

> You have in DNS onename.server.com = 122.00.00.00 and
> secondname.server.com = 122.00.00.00, and you want both sites
> served by one machine.
>
> Well the base of my question is: Can DNS serve one IP with a few port
> numbers to different names....
> 122.00.00.00:8001 --> foo.server.com
> 122.00.00.00:8002 -->bar.server.com
>
> It would be nice for me not to run multiple IPs on one machine just use 
the
> port# to differentiate.....
>
> If I have to run more than one IP then I won't need any port#s...I'll 
just
> need to figure out how to bind more than one IP to a machine...not my 
idea
> of fun this afternoon but doable....
>
> -----Original Message-----
> From:   Emiliano [SMTP:[EMAIL PROTECTED]]
> Sent:   Monday, February 07, 2000 1:04 PM
> To:     [EMAIL PROTECTED]
> Subject:        Re: [midgard] trying to get dns and midgard to agree on 
multiple
>  namessites
>
> Ken Pooley wrote:
> >
> > I am trying to get from using onename.server.com:8000,
> > onename.server.com:8002 to getting DNS and apache to recognize
> > onename.server.com, secondname.server.com. Assuming I have
> > 122.00.00.00:8000 and 120.00.00.00:8002 defined on my dns server can I
> use
> > the software definition in apache to recognize those two websites for
> > midgard? I am told by someone else no but it seems like there should be 
a
> > way. The option they suggested was to bind multiple IP numbers to my
> > machine and then have apache resolve them to the virtual servers.......
>
> OK, let me get this straight.
>
> You have in DNS onename.server.com = 122.00.00.00 and
> secondname.server.com = 122.00.00.00, and you want both sites
> served by one machine.
>
> This is not a problem for Apache at all, nor is it for the DNS setup.
> The only possible hurdle is multiple IPs in one machine.
>
> The 'easy' way is to put two NICs in the machine, each NIC gets an IP,
> problem solved.
>
> The other way is what I know by the name of NIC aliasing, and
> encompasses
> making a single NIC pretend to be multiple. Whether this works and how
> depends fully on the unix flavor you use. I know Linux, the free BSDs
> and Solaris can do this although I only know how to actually do it for
> Linux.
>
> Emile
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to