OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Opnsense + Pihole Host Name Query?
« previous next »
  • Print
Pages: [1]

Author Topic: Opnsense + Pihole Host Name Query?  (Read 1214 times)

SOUK

  • Newbie
  • *
  • Posts: 24
  • Karma: 1
    • View Profile
Opnsense + Pihole Host Name Query?
« on: October 24, 2020, 08:33:58 pm »
Can anyone tell me if theirs a way to forward HOST name information from my Opnsense routers DHCP services on to my PiHole.  I can only ever get CLIENT IP address information when viewing PiHoles query log.  I have to keep looking up what IP belongs to what device via Opnsense DHCP list each time I'm investigating alerts and stuff on PiHole.

It would be nice if I could as I don't really want to keep logging in to one device and then having to log in to the another for confirmation.
Logged

Gauss23

  • Hero Member
  • *****
  • Posts: 735
  • Karma: 38
    • View Profile
    • BackendMedia
Re: Opnsense + Pihole Host Name Query?
« Reply #1 on: October 24, 2020, 09:08:54 pm »
Services: Unbound DNS: General
DHCP Registration->check

Your PiHole then needs to use the OPNsense as nameserver for the reverse lookups.

Logged
„The S in IoT stands for Security!“ :)

System 1: ESXi, i3-9100F (2 Cores), 4GB RAM, 4x NIC
System 2: ESXi, Xeon E3-1220 V2 (2 Cores), 4GB RAM, 4x NIC
System 3: KVM, Xeon Skylake (2 Cores), 4GB RAM, 2x NIC
System 4: KVM, AMD EPYC 7702P (2 Cores), 8GB RAM, 1x NIC (Datacenter VPN Hub)

RFGuy_KCCO

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
    • View Profile
Re: Opnsense + Pihole Host Name Query?
« Reply #2 on: October 25, 2020, 04:05:10 am »
Yes, just turn on DHCP Registration as stated above (also DHCP Static Mappings if you use them). In Pi-Hole, turn on Conditional Forwarding under Settings --> DNS and set it up per your network configuration.

You can also add the line "NAMES_FROM_NETDB=true" (without quotes) to the /etc/pihole/pihole-FTL.conf file. See here for an explanation of this setting: https://docs.pi-hole.net/ftldns/configfile/
Logged
OPNsense 20.7.4
SuperMicro SuperServer E300-8D (primary WAN)
Protectli Vault FW1 (secondary WAN)
TRENDnet TEG-30284

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Opnsense + Pihole Host Name Query?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2