help with apache and virtual servers

ok i got a bad problem here.

i got two domains

crystalphase.com and thedigitaldream.co.uk

the dns are correct for both domains, and the contents of the domainname.hosts files are at the bottom of this page.

here is where my problem begins though. I setup the two domains as virtual servers, which you can see in the image below

click here for screenshot

now the problem is this.

if i type thedigitaldream.co.uk it will load thedigitaldream.co.uk site.

if i type www.thedigitaldream.co.uk it will load the thedigitaldream.co.uk which is great

now if i type crystalphase.com it will load the crystalphase.com site. if i type www.crystalphase.com it will load the thedigitaldream.co.uk site. why is that.

now then the weird thing is, if i swap the domains around, so that crystalphase.com is the first firtual server, not thedigitaldream.co.uk

then this happens :

if i type thedigitaldream.co.uk it will go to the thedigitaldream.co.uk site. if i type www.thedigitaldream.co.uk it will go to the crystalphase.com site. why?

now if i type crystalphase.com it will go to the crystalphase.com site, and if i type www.crystalphase.com it will go to the crystalphase.com site.

what is wrong, what could be causing this.

the dns for both domains are below :

thedigitaldream.co.uk.hosts
Code:
$ttl 38400
thedigitaldream.co.uk.	IN	SOA	srv1.thedigitaldream.co.uk. admin.thedigitaldream.co.uk. (
			2002102802
			4000
			3600
			604800
			38400 )
thedigitaldream.co.uk.	IN	NS	srv1.thedigitaldream.co.uk.
thedigitaldream.co.uk.	IN	A	81.97.225.82
srv1.	IN	NS	81.97.225.82
www	IN	A	81.97.225.82
bec	IN	A	81.97.225.82
ftp	IN	A	81.97.225.82
mail	IN	A	81.97.225.82
xaos	IN	A	81.97.225.82
temptation	IN	A	81.97.225.82
lobuster	IN	A	81.97.225.82
thedigitaldream.co.uk.	IN	MX	10 mail.thedigitaldream.co.uk.

crystalphase.com.hosts:
Code:
$ttl 38400
crystalphase.com.	IN	SOA	srv1.thedigitaldream.co.uk. admin.crystalphase.com. (
			2002102702
			4000
			3600
			604800
			38400 )
crystalphase.com.	IN	NS	srv1.thedigitaldream.co.uk.
crystalphase.com.	IN	A	81.97.225.82
srv1.	IN	NS	81.97.225.82
www	IN	A	81.97.225.82
mail	IN	A	81.97.225.82
profile	IN	A	81.97.225.82
crystalphase.com.	IN	MX	10 mail.crystalphase.com.
both have my primary name server registered at my registrar as :

srv1.thedigitaldream.co.uk 81.97.225.82

i dont have a secound name server so my registrar put in a secound name server and disabled it

so if anyone can help that would be great. Thanx

 

 

 

 

Top