Splunk Enterprise

DNS lookup not returning returning results as expected

cburgman
Path Finder

I am running a basic search and wanting to perform a reverse DNS lookup.

index=*proxy src_ip="10.x.x.x" | lookup dnslookup clientip as src_ip OUTPUT clienthost as Hostname
| table Hostname

The search is not returning any fields named Hostname. What am I missing? Is there a way to validate the external lookup python script is working?

Transforms.conf
[dnslookup]
external_cmd = external_lookup.py clienthost clientip
fields_list = clienthost,clientip

Splunk 6.6.2

0 Karma

woodcock
Esteemed Legend

Try this:

| makeresults | eval host="70.90.168.114" | lookup dnslookup clientip AS host

This should give you mail.ubcomputer.com.

0 Karma

cburgman
Path Finder

This works for external dns lookups. Is there a way to configure to work for internal resolution?

0 Karma

woodcock
Esteemed Legend

make sure that the host OS for your Search Head is using your internal DNS Server.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...