1,105,585 Community Members

Two domains and on name server

Member Avatar
sica07
Newbie Poster
6 posts since Feb 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hello,

I have a server on which I host my firstdomain.com. For this I created a name servers:
ns.firstdomain.com
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

Member Avatar
vammy
Light Poster
44 posts since Nov 2011
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

which server version r u using?

Member Avatar
cheaphosting
Newbie Poster
14 posts since Apr 2011
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

You should have to have atleast two nameservers assigned to single server so if one nameserver fails there would be second one to respond to

Besides each nameserver has to be assigned an dedicated IP

Hope that helps

Member Avatar
JorgeM
IT Addict
6,418 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

So you have a DNS server that is hosting firstdomain.com and you associated this domain with ns.firstdomain.com. so on that dns server create another primary zone for seconddomain.com. when you register this domain with godaddy, associate this domain with ns.firstdomain.com as well.

Normally, registrars want for you to specificy at least two NS servers that will be hosting your domain. having more than one NS server will improve the availability and fault tolerance of your DNS infrastructure.

Jessica1234
Light Poster
38 posts since Dec 2011
Reputation Points: -9 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
Banned
 
0
 

You should have to have atleast two nameservers assigned to single server so if one nameserver fails there would be second one to respond to

Besides each nameserver has to be assigned an dedicated IP

Hope that helps

Hi,
I agreed too, because as much I knew, one have to specificy at least two DNS servers that will be hosting your domain, having more than one server will improve the availability and fault tolerance of your DNS infrastructure.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: