Project

General

Profile

Feature #1707

Add ability to perform a DNS lookup

Added by Luke Murphey almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/29/2017
Due date:
% Done:

100%


Description

import socket

addr = socket.gethostbyname('google.com')
print addr

Associated revisions

Revision 64 (diff)
Added by lmurphey almost 8 years ago

Adding support for a nslookup search command

Reference #1707

Revision 73 (diff)
Added by lmurphey almost 8 years ago

Finalizing the nslookup dashboard

Closes #1707

History

#1 Updated by Luke Murphey almost 8 years ago

Might want to consider http://www.dnspython.org/

Could allow zone transfers too.

#3 Updated by Luke Murphey almost 8 years ago

Might want to handle reverse DNS lookups.

#4 Updated by Luke Murphey almost 8 years ago

Might want to print the DNS server being used too.

#6 Updated by Luke Murphey almost 8 years ago

Looks like other exceptions may be raised:

@raises Timeout: no answers could be found in the specified lifetime
@raises NXDOMAIN: the query name does not exist
@raises YXDOMAIN: the query name is too long after DNAME substitution
@raises NoAnswer: the response did not contain an answer and
raise_on_no_answer is True.
@raises NoNameservers: no non-broken nameservers are available to
answer the question."""

#7 Updated by Luke Murphey almost 8 years ago

Also, custom DNS server is not yet supported.

#8 Updated by Luke Murphey almost 8 years ago

  • % Done changed from 0 to 50

The data is not being indexed yet too.

#9 Updated by Anonymous almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 50 to 100

Applied in changeset splunk-network-tools-svn|r73.

Also available in: Atom PDF