more than two dns ip

Hi everybody ;
I am thinking to merge two or maybe three internet terminals to one MT pc to do a load balance between them and to provide the best level of internet service .
i see that there will be a problem with the dns servers’ ip , you know every terminal have two ip’s and i have to put them all in the MT .
How to do that while the / ip dns have only two fields for the ip’s ?
waiting your help .
with best regards .

Greetings!

I use the same two dns servers for everything. Is there a reason you need more than two?

Hi ;
Thanks for your reply , as you know to connect to the isp DNS server this will give you faster reply and then fast internet .
also if you connect more than two internet terminals to your MT , how you will know that you are getting internet from both of them in the same time and not only from one of them ? :confused:
let’s say i have to use more than two DNS servers in my MT , how to make it ?
will be waiting your feedback .
with best regards .

I am not sure why you need “both of them”? It only sends requests to the primary DNS server unless it is not available. Only then will it go on to the secondary.

If you need to issue different DNS servers to your clients, and you are using DHCP, you can reassign those with the DHCP settings under “/ip dhcp-server network”.

I still don’t know why.

Hi agian ;
i need to make a load balance between two or three internet terminals .
and by adding two gateways to my MT , it should send half of the requests to internet 1 and the other half to internet2 at the same time to achive the load balance between the two internet terminals and not to make traffic only on one of them .
if you need further information i will provide .
with best regards .

Then I would try a configuration where you can use two or more dhcp servers and issue the dns servers in different orders on each. Just remember, the first dns server that answers is “the final answer”. It will not go on to the next server if it cannot resolve the domain name at the first one. It only goes on to the secondary server if the first one does not answer at all.

Hi ,
I think your reply not complete at the biginning , it seems that there is some statements missing .
ok let me assume with you that i will use only 4.2.2.2 as DNS server .
how can i be sure that the load balance is working fine and that the MT send half of the requests to internet1 and the other half to internet2 .
later i will think if i will use the way making MT server send the marked connection to one of the internet and the rest to the second internet .
waiting your update .
with best regards .

My bad. I see what you want to do now. You would like your dns server to load balance for you. That is not a function of the primary-dns or secondary-dns settings. You would want those to be the same if you expect the dns server to load balance for you. I believe that would be a function handled in the dns server itself.

Hi again ;
I think you miss my point , so i will give you more details
let say i have two internet VSAT terminals and let us assume their ip’s as follow :
ip : 10.1.2.2
subnet mask : 255.255.255.0
gateway : 10.1.2.1
dns: 193.219.193.190
dns :193.219.193.191

and the second VSAT internet terminal with the following ip’s:
ip : 172.19.20.194
subnet mask : 255.255.255.192
gateway : 172.19.20.193
dns : 148.122.208.66
dns : 148.122.180.99

i will connect these two terminals to one MT OS to do a load balance between these two terminals , so half of the load will go to terminal 1 and the second half will go to terminal 2 .
i always configure a static dns server , so my MT will be the DNS server for my clients behind the MT .
in /ip dns , i could put only two DNS ip’s .
if the MT usually use the primary DNS , how i will be sure that the two terminals are working at the same time and each one take care of the half of the traffic that when i will make a static route and put the gateways for the MT as follow :
gateway1 :10.1.2.1
gateway2 : 172.19.20.193
and the destination 0.0.0.0/0
are these assumption information clear and what i will do clear ?
will be waiting your feedback .
with best regards .

Hi ;
I read in wiki today a topic about the load balance , it say it is not matter which ISP DNS server to use once it is resolving the web sites and the traffic will be balanced according to the gateways .
with best regards and thanks .
:slight_smile:

It is better for you use some open DNS like 4.2.2.1 , 208.67.222.222 or something like those.

All the DNS request differ between your local DNS and the OPEN DNS just for some milliseconds. As you providing Internet connection for browsing, i mean pure data connectivity It won’t affect much; actually user won’t feel the difference.



Rafiq…

Hi ;
Thanks Rafiq for your reply .
here i would like to ask you about what you wrote :

As you providing Internet connection for browsing, i mean pure data connectivity It won’t affect much

what do you mean by pure data ?
that mean there is another type in the service , wish to understand what do you mean .
with best regards .