Why is Unbound sending DNSSEC queries over inactive WAN interface?

  • I run 2.4.4-RELEASE-p3 with two WANs (with failover):

    • an unlimited cable connection (cheap "main-WAN" which is up >99% of the time)
    • a MiFi to a local mobile tower ("WAN-via-MiFi" which is expensive) - it is only used when main-WAN is down.

    When I capture packets via "WAN-via-MiFi" gateway ( I see two types of traffic:

    • the IP monitor traffic to IP=
    • quite a lot of DNSSEC traffic to IP= which is the DNS server for the main-WAN connection specified in the "System/General Setup" (I have DNS "Forwarding mode" enabled):

    Here is a capture:

    13:00:40.687525 IP > ICMP echo request, id 39212, seq 10888, length 8
    13:00:40.708176 IP > ICMP echo reply, id 39212, seq 10888, length 8
    13:00:41.188981 IP > ICMP echo request, id 39212, seq 10889, length 8
    13:00:41.207163 IP > ICMP echo reply, id 39212, seq 10889, length 8
    13:00:41.359524 IP > tcp 0
    13:00:41.387279 IP > tcp 0
    13:00:41.387326 IP > tcp 0
    13:00:41.387354 IP > tcp 311
    13:00:41.420094 IP > tcp 0
    13:00:41.422391 IP > tcp 1350
    13:00:41.422438 IP > tcp 0
    13:00:41.422847 IP > tcp 1350
    13:00:41.422875 IP > tcp 0
    13:00:41.422878 IP > tcp 174
    13:00:41.422901 IP > tcp 0

    What puzzles me is that I see this traffic even though WAN-via-MiFi has a separate DNS server set via "System/General Setup"(and it is NOT Could this be a bug in unbound?

    I would appreciate all ideas about preventing this unnecessary DNSSEC traffic to "" because I am paying for MiFi connection and there is no reason for it to exist before main-WAN is down (ideally it should only be packets to/from "Monitor IP").

    Thanks in advance!

  • Rebel Alliance Developer Netgate

    Unbound can only follow the default route or server-specific routes in the routing table (if you have forwarders setup). It doesn't know about active or inactive WANs.

    If you are in forwarding mode with multiple servers configured and some using each WAN, then it is normal for unbound to query them all. Again, it doesn't know about active or inactive WANs, it just queries the forwarders and tracks their quality at all times.

    If you are in non-forwarding mode, then you may want to change the option under System > Routing so the default gateway follows your chosen gateway group.

Log in to reply