How will DNS work in this situation?

GixHosting

New member
We have two servers. If we point NS1 to Server 1 and NS2 to Server 2 and if any client is using these nameservers and his account is suspended on Server 1 but active on Server 2, what will happen in the browser? do we get his site suspended or active?:help:
 
NS1 is your primary DNS. When any DNS lookup happens it always sees for the primary DNS in your case it is server 1. So the account suspension page is shown. For any reason if the NS1 fails then it looks for NS2, which will show an active website.You will have to manually suspend the website in the second server.
 
The first preference browser looks is at primary nameserver , so it will be shown suspended

the rest is explained by reddyash already
 
The question may be misleading, so I'd like to get some clarification;

Two servers, each running 1 DNS resolver - but are each server containing a copy of the client's site? Meaning files & databases are setup on two separate servers? (possibly setup on 1 server and then rSYNC to a second machine?)

If so, then as answered by others, you would need to suspend the account on both machines.

If you're using two servers to operate the DNS, and they're configured to act as a cluster, then the DNS points the user to the right place and it's the end server (client account) that controls if things are suspended or active.

DNS can be tricky at times and depends on how things are configured.

There are occasions where nameserver records are looked up using a random order, or in some cases they may even be queried in parallel and the first to respond is the one it resolves to. This avoids overloading of a single server. We used a variation of this years ago. You can see more at the Wikipedia article about the positives and negatives of such an implementation - https://en.wikipedia.org/wiki/Round-robin_DNS

So I guess a little more clarification on how you've configured your DNS and what you mean by the account being active on one and suspended on another (appearing as two separate end points).
 
If you're using two servers to operate the DNS, and they're configured to act as a cluster, then the DNS points the user to the right place and it's the end server (client account) that controls if things are suspended or active.

Thanks for your answer, the servers are not clustered. I think @reddyash is correct.

:thumbup:
 
Top