Hi,

We have recently moved from another monitoring system to PA and are very happy.

One of the items our old monitoring system could do was a DNS query in which it would check for a expected return IP address.

Example: Query DNS server (ABC.local) for webpage: 123.com, expect IP address of 1.1.1.1 returned. If a different ip address is returned it fails.

IVe not found a way to complete this other than write a program and publish the page ourselves. then do a webpage test.

Any ideas if this is possible within the current PA environment? Its a important check for us as a webpage hosting company.

Cheers

asked 05 May '15, 01:41

Sduelund's gravatar image

Sduelund
421015
accept rate: 25%


Hi Sduelund --

We have just added a DNS Monitor to our v6 Beta. You can see the documentation here:

DNS Monitor

If you would like to try the Beta, it is available now at:

PA Server Monitor BETA

link

answered 07 May '15, 17:33

Doug's gravatar image

Doug ♦♦
10.2k122138
accept rate: 21%

edited 07 May '15, 17:34

Love your work guys! will give the Beta a go.

(08 May '15, 01:01) Sduelund

You can do this indirectly using an Execute Script monitor. You should be able to modify the below to work for you without too much hassle.

Lifted from: https://social.technet.microsoft.com/Forums/en-US/d93cb9a9-32ac-4494-ae47-9269092a10d2/how-to-nslookup-an-input-in-vbscript?forum=ITCG

Option Explicit
Dim objshell, strCmd, objExec, strLine, strIP

set objShell = CreateObject("Wscript.Shell")

strCmd = "%comspec% /c nslookup MyComputer"
Set objExec = objShell.Exec(strCmd)
Do Until objExec.StdOut.AtEndOfStream
    strLine = objExec.StdOut.ReadLine()
    If (Left(strLine, 8) = "Address:") Then
        strIP = Trim(Mid(strLine, 9))
        Wscript.Echo strIP
    End If
Loop
link

answered 07 May '15, 10:35

J_Michael's gravatar image

J_Michael
1138
accept rate: 11%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×3

Asked: 05 May '15, 01:41

Seen: 6,311 times

Last updated: 08 May '15, 01:01