DNS and nameservers

Petertjuh360

Verified User
Joined
Nov 7, 2010
Messages
340
Hello all,

I recently bought a new server.
So now I have 3 servers
  • Server 1: DirectAdmin
  • Server 2: DNS (DirectSlave running, no DirectAdmin)
  • Server 3: DirectAdmin
If I add server 3 to the Multi Server function on server 1 and server 1 to the multi server function on server 3, do I have a working setup?
Do I have 3 nameservers in this case?

Kind Regards,
Peter Bin
 
Presuming you also set up your third server to use the second (DirectSlave) server (you didn't mention that) you'll have three working nameservers, each serving DNS for both DirectAdmin servers.

But the outside world won't know to use them until/unless you

1) Register the third server as a nameserver at your registrar.

2) set up NS records in all your zone files on all three machines to point to them.

Jeff
 
Hello Jeff,

Currently server 1 is my first nameserver and server 2 (directslave) is my second nameserver.
I thought that with this setup (in my first post), the DNS data from server 1 will be copied to server 2( DS) and server 3(DA),and from server 3 to server 1 (DA) and server 2 (DS).

So I make 3 records (with glue records):
  • ns1.domain.com - > IP server 1
  • ns2.domain.com - > IP server 2
  • ns3.domain.com - > IP server 3

Currently ns1 and ns2 work, but will ns3 work too with this setup?

Kind Regards,
Peter
 
What do you mean?
I ment what Jeff explained.

If I add server 3 to the Multi Server function on server 1 and server 1 to the multi server function on server 3, do I have a working setup?
Yes but now you say:
I thought that with this setup (in my first post), the DNS data from server 1 will be copied to server 2( DS) and server 3(DA),and from server 3 to server 1 (DA) and server 2 (DS).
Correct, if you make also a multi server setup to server 2 from both server 1 and server 3.
If you want to use all 3 of them, I presume you also checked this?
http://help.directadmin.com/item.php?id=196
 
I ment what Jeff explained.


Yes but now you say:

Correct, if you make also a multi server setup to server 2 from both server 1 and server 3.
If you want to use all 3 of them, I presume you also checked this?
http://help.directadmin.com/item.php?id=196

Hello Richard,

Server 2 doesn't have DirectAdmin, only DirectSlave.
I verified that this setup works, thanks for your help!

Thanks for the link Richard, I was searching for that.

I do only have one more question now.
With the transfer of the users to the other server, I assume that emails still will be delivered to server 1.
As server 3 does not yet know where to deliver it, will it be queued?
What I think the best solution is: queue the mail on server 1 and deliver them at server 3 when the transfer is done, but I don't know how to do this.

Sorry for my bad English!
 
Server 2 doesn't have DirectAdmin, only DirectSlave.
Yes I know. I was just pointing out that if you want to use that as nameserver for both other servers, you also have to setup multi server setup to that DS server (because DS also works with multi server setup) from both other servers and not only from server 1.
As far as I know you can setup DS only with 1 server at this moment.

I don't quite understand your last question. I'm giving it a try.
When you move a server from server 3 to server 1, you have a whole different ballgame. Because DNS records are present on both servers (due to MS setup) and need to be changed too (removed from server 3 and added to server 1 again).

I would to a transfer at night time with admin backup/transfer and change the nameserver of the domain at the registrar just before that.
Mail normally won't be queued if a domain can not be found, it will be rejected unless there is a backup-mx present.
Could also be the mail will be offered some time later by the originating mailserver, but I'm not sure which error causes the difference between rejection or a temporarily not available so it will be offered later again.

Maybe somebody else can point that out better.
 
Last edited:
Hello Richard,

Thanks for your advice.

Server 1 will not change his dns records after transfer, so If i setup multi server setup between server 1 and server 3, and multi server setup between server 3 and DirectSlave, I could use server 3 as ns1, server 2 as ns2 and server 1 as ns3?
I know it is a little bit messy, but I hope you'll understand me.
 
Phew let me have a look.
I'm not sure. Lets take an example and use domain1.com for server 1.
The way you set it up, domain1.com will be locally present on server 1 and due to the multi server setup as backup on server 3.

There is one question now. Server 3 has a multiserver setup connection with Directslave on server 2 as you say.
Question is... when something changes on server 1... it will be changed on server 3 due to the multi-server setup between server 1 and 3. But since this is seen as "non local" on server 3, will this change also trigger the other multiserver setup to DS on server 2 to put domain1.com on server 2 too.

If this is not the case, then server 2 can only be used as ns2 for server 3.
If this -is- the case, yes then you have ns1, ns2 and ns3 for all servers.

I don't think that multiserver setup forwards non-local changes to another multi-server setup, but I'm not sure of that. So you have to test this or maybe somebody else already knows.
 
In that case you should be fine, since all changes made on server 3 will be issued to server 1 and 2 too.
 
You're welcome. But remember to check the DS server if the changes indeed are made.
That's the only way you can be sure that it's working as designed. Changes should be made on the other servers too within a few minutes.
 
Back
Top