0

Pfsense / NextDNS cli - client names

Hi all,

I've receintly setup the cli on pfsense. All is working as expected with the blocking and logging except some of the client names are showing in the logs with just a device number while others show the correct id.

All clients have static dhcp leases with their own client id's setup on pfsense . I did make some entries in the hosts file which cured the issue, but only temporarily as the hosts file enteries are lost whenever a config change is made on pfsense. I know another workaround would be to install the nextdns app on a device but thats not possible with some devices like IoT or cameras.

Anyone have any idea's ?

Many thanks.

8replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Do the hosts with no names in the logs have a name in the dhcp lease file?

    Like
  • not in the dhcpd.leases file but i've discovered the client names will show if the device is handed a dynamically assigned ip. (in which case it is in the lease file)

    If I create a static DHCP mapping as shown in the picture it won't show the name in the NextDNS logs 

    Like
    • David perhaps pfsense stores hostnames setup this way in separate location.

      Like
  • you've pointed me in the right direction, many thanks.

    Like
  • for now the workaround is to have the devices to obtain ip dynamically rather than have static mapping until I have the time to spend on finding the real cause.

    When / if I find a real fix then I'll post it here.

    Like
  • David,

    Just curious if you found a solution as I am having the exact same issue? Thank you.

    Like
  • no James unfortunately I didn't. I get round the issue by having the NextDNS app installed on mobile devices. For others you could edit the hosts file on the PfSense box for local name resolution  but then that is lost on a reboot.

    Like
Like Follow
  • 1 mth agoLast active
  • 8Replies
  • 130Views
  • 3 Following