I have a server on which I host my firstdomain.com. For this I created a name servers:
Now I would like to host a second domain on that server and to use the same nameserves. I know that is posible (is the solution used in shared-hosting). To do so, I created a Virtual Host:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/second ServerName www.seconddomain.com ServerAlias second.com <Directory /var/www/second> Order deny,allow Allow from all AllowOverride All </Directory> </VirtualHost *:80>
My question is: How do I configure the DNS server to map seconddomain.com to the ns.firstdomain.com nameserver? (When I registered the domains at godaddy.com I specified this nameserver).
Sorry for my bad english. Thank you