Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    DNS always routes through a non default gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mark_orion
      last edited by

      We are having a multi-wan setup with four gateways here. The google DNS servers at 8.8.8.8 and 8.8.4.4 are setup as system DNS with clients connecting to these servers via dnsmasq. Strangely DNS always uses the 192.168.0.10 route instead of the default one. This happens even when 192.168.0.10 is down and automatically or manually taken off the gateway group. I have disabled dnsmasq just in case the route is generated somewhere there, disabled sticky connections, rebooted, but it did not help. The gateway associated with the DNS servers is WAN what should be either load balanced or the default gateway, but not sticking to 192.168.0.10 even if it is down.

      Here is the output from netstat -rn
      Destination        Gateway            Flags    Refs      Use  Netif Expire
      default            192.168.0.20       UGS         0       24    em0
      8.8.4.4            192.168.0.10       UGHS        0      235    em0
      8.8.8.8            192.168.0.10       UGHS        0      235    em0

      any ideas ?

      1 Reply Last reply
      Reply Quote 0
      • H
        heper
        last edited by

        you set them as monitor ips for your gateway groups ?

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy