• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Unbound Interface Forwarding

DHCP and DNS
2
4
608
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
    MagikMark
    last edited by MagikMark Sep 3, 2022, 2:51 AM Sep 3, 2022, 2:42 AM

    How do I do this in Unbound Custom options:

    server:
    do-not-query-localhost: no
    forward-zone:

     Interface: 10.0.1.1
     Name: "." 
     forward-addr: 10.0.1.1@53
    
     Interface: 10.0.1.10
     Name: "." 
     forward-addr: 10.0.1.101@53
    
     Interface: 10.0.1.20
     Name: "." 
     forward-addr: 10.0.1.20@53
    
      Interface: 10.0.1.30
     Name: "." 
     forward-addr: 10.0.1.30@53
    

    Is this the proper syntax?

    J 1 Reply Last reply Sep 3, 2022, 10:54 AM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @MagikMark
      last edited by Sep 3, 2022, 10:54 AM

      @magikmark

      What is the goal? What exactly are you trying to accomplish?

      Why would you have so many IPs on the same network?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      M 1 Reply Last reply Sep 3, 2022, 9:02 PM Reply Quote 0
      • M
        MagikMark @johnpoz
        last edited by MagikMark Sep 3, 2022, 9:03 PM Sep 3, 2022, 9:02 PM

        @johnpoz

        As always, thanks for the reply.

        My primary goal here is to have DNS gateway for every interface for easy monitoring of clients. Every interface represent a segregated subnet. And every device has a "description" attached to it when they make a query for even easier identification. This is done through Adguard Home UI using NextDNS. I welcome tweaks and tricks if you have any.

        Hence, I am now conducting this experiment. I thought maybe Unbound will be more efficient if it does the forwarding it self rather than using port forwarding.

        As always, I welcome your thoughts

        J 1 Reply Last reply Sep 3, 2022, 9:59 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @MagikMark
          last edited by johnpoz Sep 3, 2022, 10:01 PM Sep 3, 2022, 9:59 PM

          @magikmark huh, unbound out of the box would listen on any interface you have. And then you can pick if you want interfaces it listens on if you want to leave some off.

          But your examples would all be on the same interface unless you were using like really tiny masks. And then those numbers would still be odd because they are not the first IP in the block, etc.

          So if you have 10.0.1/24 and a 10.0.2/24 unbound out of the box would listen on those interfaces.

          As to forwarding, sure you can setup unbound to forward, you don't need to use option box for that. So not sure where the port forwarding is coming from, the only time you would want to do port forwarding for dns, is if you wanted to intercept traffic to some other dns like if the client was trying to ask 8.8.8.8 and you wanted it direct that to unbound and it was forwarding to say 9.9.9.9 or was just resolving, etc.

          example, vs using all - you can select what interfaces you want unbound to listen on

          login-to-view

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.