Splunk Search

How to use lookup dnslookup to get list of hostnames from a CSV file?

Kitag345
Explorer

Hello,

I am trying to obtain IPs from Hostnames. I am using inputlookup to get the list of hostnames from a CSV file. The problem is that "lookup dnslookup" is only displaying IPs for certain hosts (there are no missing fields). My queries are correct as the Table command provides all the information I need. Except, I obtain a lot of nulls instead of IPs. What I am doing wrong?

xxxxx

xxxxxxx

| lookup dnslookup clienthost as Hostname OUTPUT clientip as ComputerIP

| table Hostname ComputerIP

Labels (1)
0 Karma

nyc_jason
Splunk Employee
Splunk Employee

Could some of those IPs internal IPs (like a 192.168.x.x network), or otherwise not resolvable? For the IPs that dont resolve, spot check some from a command prompt using nslookup <ip>

0 Karma

Kitag345
Explorer

Most, if not all of those IPs are on the 10.x.x.x they are all resolvable.

0 Karma
Get Updates on the Splunk Community!

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...

What’s New in Splunk Cloud Platform 9.1.2308?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2308! Analysts can ...