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

    Unable to resolve pihole custom dns entries

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 260 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.
    • C
      CrazyWolf13
      last edited by

      Hi
      I have a LXC (10.10.20.x) behind a pfsense interface (10.10.20.1) and a pihole instance running on (10.10.20.2), now my pfsense is the main dns for all my LXC's which worked great, but now as I have a domain and run a local ONLY nginxproxymanager instance and wrote local dns rewrites on pihole to get the domains to use the proxy, works absolutely fine everywhere, even when directly querying the pihole via nslookup it outputs correct.

      Now my pfsense instance is a dns forwarder only and has as a dns server (for testing) just the pihole.
      That works fine for every domain, they appear on the pihole log etc, but when trying to use or query my local dns rewrites through pfsense it just does not work at all, there is can't find subdomain.example.com: No answer.

      Thank you for any help!

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

        @CrazyWolf-0 most likely rebind protection. When unbound forwards to some other NS, and the answer is rfc1918 it will not provide this answer to the asking client.

        Set your domain as private, or disable rebind completely

        https://docs.netgate.com/pfsense/en/latest/services/dns/rebinding.html

        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

        C 1 Reply Last reply Reply Quote 0
        • C
          CrazyWolf13 @johnpoz
          last edited by

          @johnpoz
          Wow, you are awesome !!!
          Huge thanks!
          Worked!

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