What you are wanting to perform is a standard dns lookup then, hostname/fqdn to ip address. Splunk can do this, and reverse (ip to hostname/FQDN) lookups quite easily.
Gives the full process for implementing and performing both Standard and Reverse lookups.