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

How to show Hostnames in Pihole while using Pfsense?

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 227 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.
  • D
    DoktorKlingeL
    last edited by DoktorKlingeL Aug 13, 2024, 6:36 PM Aug 13, 2024, 6:33 PM

    Hello everyone!
    Before I got Pfsense I only used Pihole in combination with my router/modem combo. I liked how the hostnames where resolved in Pihole so I knew what DNS requests came from what device.

    Now I have upgraded my network and it looks something like that now:
    Modem (bridge mode) -> Pfsense -> TPLink Router (AP Mode)
    On the TP Link Router I have connected my PC, NAS, Pihole (raspberrypi) and some devices over Wifi. But now the pihole shows only IP adresses instead hostnames. On Pfsense when I look to the DHCP Leases all devices show up correctly (apart from my smartphone it has two dchp leases somehow). Is there a way to make pihole show the hostnames like it used to without pfsense in between?

    My pihole DNS settings are:
    ||eed13b67-e05f-4e3a-adcc-4fc45782dc3d-grafik.png||
    I have Unbound as a custom Upstream DNS Server hence the 127.0.0.1#5335 IPv4 adress under Custom 1

    PfSense Settings:
    System/ General Setup
    DNS Server Settings:
    DNS Server: IP from Pihole
    Hostname: pihole

    Services/ DNS Forwarder: Disabled
    Services/ DNS Resolver: Enabled
    DNS Query Forwarding: Enabled
    DHCP Registration: Enabled
    Static DHCP: Enabled

    I am quite new to networking, but it is great fun to try new things, and sometimes I have to scratch my head why something isnt working as I thought it would.

    Have a great evening!

    Edit: I also have the IP Adress of pihole under the DHCP settings.

    1 Reply Last reply Reply Quote 0
    • A
      AndyRH
      last edited by Aug 13, 2024, 6:37 PM

      First, make sure pfSense is pointed outside for DNS.
      In PiHole have it forward local request domains to pfSense. This will allow PiHole to resolve the names. If pfSense points to PiHole for DNS this can cause a loop.

      o||||o
      7100-1u

      D 1 Reply Last reply Aug 14, 2024, 4:54 AM Reply Quote 0
      • D
        DoktorKlingeL @AndyRH
        last edited by Aug 14, 2024, 4:54 AM

        @AndyRH
        I made a local A DNS record for every IP Adress :) This also worked for me since I dont have that many devices :)

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received