Added pinging code
This commit is contained in:
1 parent
f66804ee71
commit
b50bd2dbc0
1 file changed
+5
@@ -40,6 +40,10 @@ def ipLookup(inDomain):
|
|||||||
|
|
||||||
print ipLook, "PTR: ", host
|
print ipLook, "PTR: ", host
|
||||||
|
|
||||||
|
def ipPing(inDomain):
|
||||||
|
ping = subprocess.check_output(["ping", "-c 5", inDomain])
|
||||||
|
iterate(ping, "")
|
||||||
|
|
||||||
def getInput():
|
def getInput():
|
||||||
global inInput
|
global inInput
|
||||||
global partDomain
|
global partDomain
|
||||||
@@ -69,4 +73,5 @@ while running == 1:
|
|||||||
dig(inInput, "NS")
|
dig(inInput, "NS")
|
||||||
dig(inInput, "SRV")
|
dig(inInput, "SRV")
|
||||||
dig(inInput, "SOA")
|
dig(inInput, "SOA")
|
||||||
|
ipPing(inDomain)
|
||||||
|
|
||||||
Reference in new issue
Block a user