icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading DNS App for Splunk
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

DNS App for Splunk

Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
Overview
Details
This app provides the ability to perform arbitrary DNS queries such as CNAME, TXT, A queries using `dnsquery` command.

It attempts to complement the `dnslookup` command within Splunk which only performs A records while this app can help to perform more DNS query types.

The steps to install this app are relatively straightforward - simply download the `.tar.gz` package, install the app through `Manage Apps` section and restart Splunk via `Server Controls` > `Restart Splunk` option. Detailed Instructions on how to deploy the app is available on the Github page for this app here: https://github.com/manasmbellani/athena-dnssplunkapp

Summary

This app complements the dnslookup command in Splunk by adding a commands such as dnsquery which allow the ability to perform different DNS query type such as CNAME and TXT.

Refer to detailed installation instructons for the app on Github page here.

View Logging/Progress
To view logging or determine the progress made in DNS resolution for large piped input, view the logs in the _internal index with the following command:

index=_internal source=*dnsquery*

Examples
Example 1: Getting MX records for a domain
Run the query to get the MX records for the domain google.com:

| makeresults
| eval domain="google.com"
| dnsquery domainfield=domain qtype="MX"

Example 2: Getting TXT/DMARC records for a domain
To get the DMARC record for the domain google.com which is obtained by getting TXT for the domain _dmarc.google.com and write the response to a new field called dns_answer_txt, run the command:

| makeresults
| eval domain="_dmarc.google.com"
| dnsquery domainfield=domain qtype="TXT" answerfield="dns_answer_txt"

Example 3: Get IP address for hostnames in the lookup file

To get the IP addresses for the hostnames specified under the field domain an inputlookup file called domains.csv, run the command:

| inputlookup domains.csv
| dnsquery domainfield=domain qtype="A"

Example 4: Get Domain name for the IP Address via PTR
Get the domain name for 8.8.8.8 IP address by specifying the ARPA address, run the search for PTR record as per below:

| makeresults
| eval domain="8.8.8.8.in-addr.arpa"
| dnsquery domainfield=domain qtype="PTR"

See attached sample screenshots for more info.

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2020 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.