I hope I understand your request well. To be honest I am not a DQL guru I have just started to learn.
I would create a dashboard with this DQL (you can add other extra fields if you want).
| fieldsAdd ipAddress, entity.detected_name
| filter in (ipAddress, array($IP) )
In order to work well I created a variable = IP
| fieldsAdd ipAddress
| fieldsRemove entity.name, id
This is the results, you can search hosts by IP address:
I hope it helps.