Subject: Re: Hostname aliases
To: Uwe Klaus <uklaus@hgb-leipzig.de>
From: Dave Millen <webmaster@largesalad.co.uk>
List: netbsd-help
Date: 08/16/1998 00:26:24
Hi,

I use ifaliases for web site development using apache.

add something like the following to /etc/hosts:

     192.168.1.1    www.www1.org
     192.168.2.1    www.www2.org

then either type or run as a script:

     ifconfig <if>0 192.168.1.1 alias
     ifconfig <if>0 192.168.2.1 alias

where <if> is the ethernet, ppp, loopback or whatever -

named will then find your virtual host

regards,
Dave


Uwe Klaus wrote:

> Is it possible to assign several symbolic host names to one network
> interface? The DNS entries point to the same IP number.
>
> Which kernel options are necessary ?
> What are the corresponding ifconfig and route command options under NetBSD?
>
> Under Linux IŽd type:
>         ifconfig eth0:0 www.www1.org
>         route add -host www.www1.org dev eth0:0
>         ifconfig eth0:1 www.www2.org
>         route add -host www.www2.org dev eth0:1
>
> Best regards
> U. Klaus



--
Customer: "I'm running Windows 95 and Internet Explorer 4."
Tech Support: "Y-e-e-e-e-s........"
Customer: "My Computer isn't working now."
Tech Support: "Yes, you just said that."

e-mail: dmill@globalnet.co.uk
net: http://www.largesalad.co.uk