3
3
3err02016-05-16 04:12:24
Domain Name System
3err0, 2016-05-16 04:12:24

How to set strict order in DNS Round-Robin?

There is a server with 2 static ip addresses on it, but each ip, being the second one, is in reserve when the first one is online (reverse provider), in 2domains at the moment, to the N domain, one of the first IP addresses that are located is specified as an A record most often on the network, but when specifying 2 A records, the second of which is the second address, then when accessing the domain, ip addresses are given in random order, the first record of which can be the ip address in the reserve, is it possible to somehow specify in A records the order in which ip addresses should be given to the client, i.e. set a strict order for Round-Robin.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
Maxim, 2016-05-16
@m77x

Isn't it easier through ns, indicating IP if you are on 2domains?

ns1.youdomains.tld ***.***.***.*** <- 1 ip
ns2.youdomains.tld ***.***.***.*** <- 2ip
ns3.youdomains .tld ***.***.***.*** <- 3ip

A
Alexey Ukolov, 2016-05-16
@alexey-m-ukolov

You can’t set the order, it’s a very stupid tool.
And you, judging by the question, are using the wrong tool to solve your problem. Round-robin DNS should be used when your front-end server is simply physically unable to handle incoming connections in a reasonable amount of time (in other words, when you're Google). To solve your own problem, there is, for example, Amazon Route 53 or Elastic IP (the specific solution depends on the task).

D
Dmitry Kovalsky, 2015-07-16
@dmitryKovalskiy

For such tasks, there is a BackgroundWorker. In fact, a wrapper on working with a separate thread.

L
Larry Underwood, 2015-07-15
@Hydro

If the screen is during startup, then this is called a Splash Screen.
If during processing, then at the moment of starting the calculation, show the form on which the BusyIndicator is spinning, for example, and hide it when the calculations end.

V
Vitaly Pukhov, 2015-07-16
@Neuroware

If the process does not change anything on the form (there are all sorts of progress bars), then you can not bother and just call the function "in a wrapper" like this:

MethodInvoker mi = new MethodInvoker(delegate{ //создаем вызов метода в отдельном потоке
      ОченьМедленнаяФункция(int СПараметрамиДа);
}); mi.BeginInvoke(null, null);//начинаем выполнять, в случае чего его можно всегда убить через объект mi

P
pvlunegov, 2015-07-17
@pvlunegov

Your question is not correct.
Specify the scope of your task.
Where should the popup be?
On Windows? In a browser window?
If you want a browser popup, it's simple:
Html: Remove
the "-" from the code:
<-div class="popup">
Hi!
I am a popup.
<-/div->
​ CSS :
.popup {
position: absolute;
max-width: 400px
border: 1px solid #71653a;
border-radius: 5px
padding: 20px
color: #71653a;
background-color: #fff1be;
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
​ More details here - habrahabr.ru/post/161041

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question