Author Topic: Problem DNS - with multiples gateway.  (Read 1624 times)

clicerioneto

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Problem DNS - with multiples gateway.
« on: March 12, 2009, 03:17:49 pm »


I have 2 internet links with different providers, or have, different DNS for each link. When I active the traffic balance, I have problem with DNS. Because when the connection traffic by LINK A, o LINK A will use the LINK B Preferred DNS because the DNS of LINK B tops the list.

What would have some solution?

SirRod

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Problem DNS - with multiples gateway.
« Reply #1 on: March 12, 2009, 05:03:26 pm »
I had the same problem, not with ebox but with a dual wan device.  To get around it I use OPENDNS, that way it can go out either connection and no one complains.

Hope that helps,
SirRod

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: Problem DNS - with multiples gateway.
« Reply #2 on: March 12, 2009, 10:34:44 pm »
Is the problem with your clients or your eBox?

If the problem is with your client machines, you can add a multigateway rule to route the dns traffic by the right router.

If it's with eBox I can tell you how to modify it to make it use the right router.

clicerioneto

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Problem DNS - with multiples gateway.
« Reply #3 on: March 12, 2009, 11:38:15 pm »
In this case I have 2 rules:

One rule for the GATEWAY "A" and other rule for the Gateway "B"

For example: I can create 2 objects

The Object "DNS A" contains the DNS of the gateway "A";
The Object "DNS B" contains the DNS of the gateway "B";

###############################################

The rules would thus:

## RULE "GATEWAY A"

Protocol: UDP
INTERFACE: eth1
SOURCE: ANY
PORT: ----
DESTINATION: OBJECT "DNS A"
PORT: 53
GATEWAY: "GATEWAY A"

## RULE "GATEWAY B":

Protocol: UDP
INTERFACE: eth1
SOURCE: ANY
PORT: ----
DESTINATION: OBJECT "DNS B"
PORT: 53
GATEWAY: "GATEWAY B"

oK?