Resolve single domain from two server

Ranjan

Verified User
Joined
Dec 30, 2021
Messages
22
Location
India
Hi there,
It's little bit tricky but let me describe...
I have a short domain (let's say ab.cd) , now I pointed wildcard DNS to my server IP where Direct admin installed.
Now I can create unlimited direct admin user with subdomain from my main domain ( like anything.ab.cd , anything1.ab.cd ,anything2.ab.cd and so on)
Till then it's working fine, now I decided to deploy another server and do the same thing ( want to create subdomain from ab.cd )

Now my question is how can I resolve single domain (let's say ab.cd) from two server ?

I already tried multi server setup, passed 2 wildcard A record but not working.
Any suggestion?
 
Hmmz... interesting. The domain ab.cd is pointing to server 1. So in fact anything of *.ab.cd is pointing to server 1.

Now you create anything1.ab.cd on server 2. But only on server 2 the anything part is pointing to server 2's ip address. But the main domain ab.cd is still pointing to the ip of server 1.

So on server 1 you need to create A records for the subdomains residing on server 2.

Also see this.

I'm not sure if it's possible to have it resolve from both servers, because in fact 1 domains only works with 1 nameserver, or you must add NS records for the subdomain. Not sure on how this must ben done.
 
Back
Top