Problems creating domain for intranet



I am new to linux and trying to setup apache server. i was succesful
in configuring apache and the apche server is running.

I am able to acces html pages through browser using http://localhost.


What i want now is to create diffrent domain names which can be used
by different person to put there webpages say for example :


hrd.john.net
sls.mike.net


each having his own space limit.


i read in some help files that i have to create virtual ips for that.


i have created virtual ips for my ethernet card.

and i am able to ping those ips.


then i created namebased domain name for each ip. and have assinged
them folders.


but i am unable to access webpages put in those folders using these
domain names or even ip.


can somebody guide me what i am doing wrong.

do i have to configure dns for that ? how do i do that ?


thnx for your time and help

.