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

    Weird question about DNS resolution within a nested network

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 209 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.
    • B
      Bubbadoge 0
      last edited by

      Ok so I'm on someone's network using pfsense to create my own network and stay separate from them (mostly)
      and I'm using pfsense as a DNS resolver to resolve *.example.com to some servers/services on my network.
      However, on the network above mine, they are not able to use my DNS to access my servers/services
      I have tried configuring it so that they use my pfsense box as a DNS server, and then setup a nat rule allowing them to access pfsense and the servers/services (I verified from their network port 53 is open) and i have enabled DNS forwarding mode. However no dice, ever time i do a nslookup this is what i get

      nslookup example.com 192.168.0.34 (the pfsense box's IP from their network)
      Server: 192.168.0.34
      Address: 192.168.0.34#53

      ** server can't find example.com: REFUSED

      Anyone have any clue why its not working?
      In the documentation is says this "In forwarding mode the DNS Resolver will forward DNS queries to the list of servers configured under System > General Setup or those obtained automatically from a dynamic WAN."
      But im not entirely sure if its working or how to configure that.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Bubbadoge 0
        last edited by johnpoz

        @Bubbadoge-0 said in Weird question about DNS resolution within a nested network:

        ** server can't find example.com: REFUSED

        You need to make sure you allow some network to talk to unbound.. This would be in the ACLs - the auto is only going to allow lan side networks.. If your clients are upstream, ie pfsense wan they would not be allowed out of the box. You would have to add them to your ACL.

        What do the upstream clients normally use for dns? You should prob just put in a domain override at that NS to know to go ask pfsense for example.com

        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.8, 24.11

        B 1 Reply Last reply Reply Quote 1
        • B
          Bubbadoge 0 @johnpoz
          last edited by

          @johnpoz yep that did it for me, just needed to allow their subnet in the ACL thank you.

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