Solved Setting 2 Name Servers for Multiple Servers

fianbiasa

Verified User
Joined
Jan 4, 2015
Messages
29
Location
Indonesia
First, I would like to apologize if the thread I created seems duplicate or has been posted before.

because I was confused reading the previous post which I myself did not understand.

in short, I want to ask based on the following conditions:

A. I have 2 VPS, then I installed DirectAdmin Personal plus license.
B. I prepare 1 Dedicated Server or more (for shared hosting needs).

on both VPS (let's say):
vps1 : ns1.domain.com (111.222.333.441)
vps2 : ns2.domain.com (111.222.333.442)

I installed DirectAdmin personal plus license, for DNS Server needs only.

the conditions:
  • vps1 -> multi server setup -> I added vps2 for the data
  • vps2 -> multi server setup -> I added vps1 for the data

my understanding, this is to connect the two DNS so that they are synchronized.

for Dedicated Server, I installed DirectAdmin with Standard License. (111.222.333.555)

which later I will install the domain (exampleme.com) using:
ns1.domain.com (111.222.333.441)
ns2.domain.com (111.222.333.442)

with such settings, will my domain exampleme.com use IP (111.222.333.555)?

if wrong, can I install the multi server setup settings on the Dedicated Server?

so, vps1 and vps2 only need to be installed with DirectAdmin.
 
I installed DirectAdmin personal plus license, for DNS Server needs only.
If you have already 1 vps and 1 dedi, you don't need a seperate VPS for DNS anymore, you can use the DA multi server setup between the VPS and the dedicated server.

The you can use for example on the vps:
ns1.domain.com 111.222.333.441
ns2.domain.com 111.222.333.555 (dedi ip)
the ns2 you setup on the dns of the domain.com do not enter this ip into the ip manager ofcourse.

and on the dedi you can use:
ns1.dedicated.com 111.222.333.555
ns2.dedicated.com 111.222.333.441 (same as above).

Then on both vps and dedi use the multi-server setup and things will work as you want.
This way you safe 1 vps cost and 1 license cost for the personal license and still have multi-server dns.
 
If you have already 1 vps and 1 dedi, you don't need a seperate VPS for DNS anymore, you can use the DA multi server setup between the VPS and the dedicated server.

Then on both vps and dedi use the multi-server setup and things will work as you want.
This way you safe 1 vps cost and 1 license cost for the personal license and still have multi-server dns.

okay, thank you for your answer my friend.

I mean, I want to make the vps server specifically handle DNS only.

so, for the next dedi all domains just use the DNS.
for example (ns1.domain.com & ns2.domain.com) only.

dedi 1, dedi 2, and so on.

with the conditions I mentioned above, is it possible?
 
Oke so you want to use a seperate VPS specifically for DNS only.
I would advise to only use the DNS only for multi-server setup, so for secondary dns only, and keep first dns zo ns1 on the server and vps where you have the hosting accounts.

And yes, the ip from the DNS vps can be used as ns2 for multiple dedicated servers, that's no problem.
 
Oke so you want to use a seperate VPS specifically for DNS only.
I would advise to only use the DNS only for multi-server setup, so for secondary dns only, and keep first dns zo ns1 on the server and vps where you have the hosting accounts.

And yes, the ip from the DNS vps can be used as ns2 for multiple dedicated servers, that's no problem.


Thank you for your answer, my friend.

I have installed DA on 2 VPS (only for DNS server)

and now I am installing DA for Dedicated Server (specifically for hosting client data), later I will just use NS from the 2 VPS above.

I will report the results later.
thank you.
 
Yes that is also possible, with the multi-server setup just DNS records are transferred, so should be possible.

I have tried it and it works.
Currently I want to try updating the settings to a Dedicated server that is already live.

What are the steps?

Is it like this:

- 2 VPS to be used as DNS servers (already setup and active) ns1 & ns2.
- The old Dedicated server IP, I changed the DNS settings (multi server to 2 VPS DNS)

DNS.png


And do I need to run the command:
echo "action = rewrite & value = named" >> /usr/local/directadmin/data/task.queue
 
- The old Dedicated server IP, I changed the DNS settings (multi server to 2 VPS DNS)
Not only there.
Because if you want to give new accounts the correct nameservers, they also need to be present in the admin/reseller account which creates the new user accounts as far as I know.

So if you have ns1 and ns2.example.com here on this screenshot, then you also need the ns1 and ns2 a-records and NS records in the example.com domain if I'm correct.
Unless that's already working correctly then it's fine probably. I always add them there anyway.

If that is all good, yes indeed you need to first setup multi-server setup between the dedi and the VPS which does named.
And if connection is correct then indeed from the dedi server you need to run that command you mentioned last.
 
okay it works perfectly so far.
thank's to @Richard G who always respond to my posts

2 VPS as DNS servers only.

1 Dedicated server, and so on as hosting servers.

then just use NS1 and NS2 from VPS to handle all websites.

directadmin is great.
 
Back
Top