Page 1 of 1

2 DNS's from 2 ISP's from 2 countrys

Posted: Wed Jun 02, 2010 11:55 pm
by abdonetwork
Hello I'm tried to found my answer in mikrotik forum but no same .

i have tow internet ISP's the first is net vision Israel they have different Dns than the
second ,
the second ISP from Palestine Paltel, have anther DNS too.
then this internet came from tow ISP's entered to load balance to have one LAN going to my Mikrotik
the problem is (in many time i have problem in with browsing ) * can't load page*
the question is if the load balance configured as right settings, what is the right DNS configuration must be in the Mikrotik ? can i use the tow DNS's in same time ?
thank you
Image

Re: 2 DNS's from 2 ISP's from 2 countrys

Posted: Thu Jun 03, 2010 1:40 am
by jgellis
Is it possible that one or both of your ISPs are blocking external DNS queries? If so, requests to DNS1 that were "load balanced" out ISP2 would get rejected (and vice-versa). A workaround would be to create two or more static routes ensuring that the DNS traffic destined for DNS1 only goes out ISP1 instead of load balancing the DNS requests. So long as you did this for both DNS entries (one from each ISP), you will still have redundancy. If DNS1 does not answer, DNS2 will be used to resolve the query.

You need the following addresses to proceed:
IP address of DNS server from ISP1 (referred to as $dns1)
IP address of default gateway of ISP1 (referred to as $gw1)
IP address of DNS server from ISP2 (referred to as $dns2)
IP address of default gateway of ISP2 (referred to as $gw2)

/ip route add dst-address=$dns1 gateway=$gw1
/ip route add dst-address=$dns2 gateway=$gw2

Re: 2 DNS's from 2 ISP's from 2 countrys

Posted: Sat Jun 05, 2010 1:58 am
by abdonetwork
thank you