OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: kwo1 on September 15, 2025, 06:34:15 PM

Title: Hostnames are not being resolved
Post by: kwo1 on September 15, 2025, 06:34:15 PM
I've already enabled real-tiome DNS enrichment in Zen Armor, under Settings > DNS Enrichment.  I've added DNS servers to the list as well.  However, when I look at the Recent Devices section, 99% of them show up as "Other Device" instead of showing its actual hostname.  In my Reports, I see MAC addresses for the vast majority of devices, instead of hostnames. 

To troubleshoot, I SSH'd to the server and performed an nslookup, specifying the DNS servers.  (nslookup <IP address of computer> <DNS server IP>) and it was able to resolve to hostname successfully, so this tells me opnsense can successfully reach the DNS server I had specified and process the lookup.  

Any ideas?

Thank you
Title: Re: Hostnames are not being resolved
Post by: sy on September 16, 2025, 08:36:06 AM
Hi,

Could you verify whether the hostnames appear in the Live Sessions - Connections report under the Source Hostname column?
Title: Re: Hostnames are not being resolved
Post by: kwo1 on September 17, 2025, 01:05:27 AM
Quote from: sy on September 16, 2025, 08:36:06 AMHi,

Could you verify whether the hostnames appear in the Live Sessions - Connections report under the Source Hostname column?
I looked and the majority of them only show IP addresses.  For the ones that do show hostnames, I confirmed that they do not have an entry under Aliases in OPNsense, nor are they statically defined in Unbound DNS. 

I think I found the root cause of my issue:

With how it was configured previously, I think it was causing a vicious loop of the DC and OPNsense querying each other and not going anywhere. 

Now with the changes I listed above, I see hostnames correctly populating in the Live Sessions view and Reports. 

Hope this helps others.