Second server dns setup?

ericosman

Verified User
Joined
Nov 25, 2019
Messages
675
Location
Weert
Hi all,

I got a second server and i connected both with multi server setup, but now my question is how can i "extend" my nameservers?

For now i got:
ns1.domain.com
ns2.domain.com

for server 1

And i would like to make
ns3.domain.com
ns4.domain.com

for server 2, or ns2.domain.com for server 2 whatever is the best :-)

Can anybody help me with this setup?
 
Best is to have seperate geologic locations for both nameservers. We stopped using the local ip's only on 1 server and switched the ip's amongst the servers in the nameserver records to easily achieve this.

For example on server 1 you have 2 ip addresses, I will use LAN ip addresses just as example:
192.168.10.1
192.168.10.2
with domain example.com

And on server 2 you have other addresses:
10.0.0.1
10.0.0.2
with domainname foo.com

Now what we do to have really external nameservers on different locations and subnets, we exchange those, so we set it up like this.
On server 1:
192.168.10.1 ns1.example.com
192.168.10.2 ns2.foo.com

On server 2:
10.0.0.1 ns1.foo.com
10.0.0.2 ns2.example.com

This is quite easy to do, as you only have to specify the correct ip addresses at the ns2 A records on both servers.
So in example.com on server 1 it will be:
ns1.example.com. 3600 IN A 192.168.10.1 ns2.example.com. 3600 IN A 10.0.0.2

And you do th same on server 2 with the other ip's.
ns1.foo.com. 3600 IN A 10.0.0.1 ns2.foo.com. 3600 IN A 192.168.10.2

Ofcourse, these ip's must also be setup at your registrar as ns1 and ns2 for your domains.

This way you have a correct redundant dns. If server 1 goes down, server 2 will still as secondary nameserver due to the multi server setup and for example mailservers will know domains exists but are only down.
Same if server 2 will go down, on server 1 the domain names will still be presented as existing, but just not reachale for this moment.

Is this what you were looking for?

It's always possible to add other ip's like this from other servers for ns3 and ns4 if you really want that.
 
Well, i think that part i did (already) correctly, but how do i put it into DA itself?
Because i cant have the same domain on both servers. under the nameserver section?
 
but how do i put it into DA itself?
Huh? You do that how I just wrote it in my post. I specifically specified how it would look on server 1 and on server 2 with different domains in the code example. That is exactly how it's done into DA itself.
In my example the same domain isn't used on both servers as you can see.
Only the ip address is used, but you only use that in the DNS manager of the domain for the A records.

The NS records always keep the same name, so ns1 and ns2.example.com on server 1 and ns1 and ns2.foo.com on server 2.
Only the ns1 and ns2 A records have different ip address like in my example.

If you don't quite get it, maybe you write me a pm, so we can write in Dutch. Maybe that is easier for you.
 
Back
Top