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

    Pihole with pfsense as resolver

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 670 Views 3 Watching
    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.
    • G Offline
      gwabber
      last edited by

      Hey all,
      I can't get IPv6 working in Pihole with Pfsense as resolver.

      I setup PiHole in my network as follows:

      Pfsense:
      In general setup I set the DNS servers to CloudFlare, IPv4 and V6. I enabled the DNS resolver.
      This works.

      PiHole:
      I setup the IPv4 address to my router's IPv4. This works. The client has Pihole as DNS server and Pihole resolves the address through pfsense. This also works.

      But what do I have to put in the IPv6 address in Pihole? The link local fe80 doesn't work and I don't want to use the GUA because my prefix isn't static.
      dnspihole.jpg

      What's best practice in this case?

      Thanks in advance!

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rcoleman-netgate Netgate @gwabber
        last edited by

        @gwabber You could, probably, just put in the LAN IPv6 gateway address -- but I don't have a compatible system to verify that for you.

        Ryan
        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
        Requesting firmware for your Netgate device? https://go.netgate.com
        Switching: Mikrotik, Netgear, Extreme
        Wireless: Aruba, Ubiquiti

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gwabber @rcoleman-netgate
          last edited by

          @rcoleman-netgate Thanks for your reply!

          Unfortunately, that doens't work. I can ping the gateway address, but only if an interface is specified. Pihole doesn't allow to specify an interface, so i can't use it (tested it allready).

          What I did as a workarround is adding my ULA private addresses to the access list of Unbound, so now I am using ula addresses.

          It works, but I don't know if this is best practice...

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

            @gwabber said in Pihole with pfsense as resolver:

            What's best practice in this case?

            There is little reason to tell pihole to use an IPv6 address if you worried its going to change on you. Talking to resolver on IPv4 works, you can resolve IPv6 addresses (AAAA) over IPv4 just fine.

            Not sure what you think you get by also setting IPv6 for pihole to use?

            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 25.07.1 | Lab VMs 2.8.1, 25.07.1

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              gwabber @johnpoz
              last edited by

              @johnpoz true, it works perfectly fine with IPv4. I just want to learn about IPv6 and I experiment with IPv6 only networks.

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