Hi,
I am using the "DNS Test" test method. What I am looking to do is get the MX records for a certain domain. This works fine in the test properties when I click "Test" and it brings back a result which contains the mx records, but this does not actually populate any column I can see. It lists the reply as 22 ms - I actually want the reply to be the resolved mx record. Any ideas?
A seperate question; is there any way to make the history chart bigger? At the moment the four graphs returned are quite small.
Thanks!
DNS Test getting resolved domains in reply and History Chart
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
DNS Test getting resolved domains in reply and History Chart
You may use "Tune up Reply value" option, located on Test properties dialog, with macro-variables like %DnsResults% or %DnsResult%I am using the "DNS Test" test method. What I am looking to do is get the MX records for a certain domain. This works fine in the test properties when I click "Test" and it brings back a result which contains the mx records, but this does not actually populate any column I can see. It lists the reply as 22 ms - I actually want the reply to be the resolved mx record. Any ideas?
Quote from manual:
http://www.ks-soft.net/hostmon.eng/mfra ... #currmacro
Please check the manual or visit our web site for more information at:the following variables provide information about the results of DNS tests
%DnsResults% Provides information about all entities received from DNS server (items separated by CRLF characters)
%DnsResult% Provides information about 1st entity only
Tune up Reply value option: http://www.ks-soft.net/hostmon.eng/mfra ... uneupreply
Excellent, thank you. Could you show me an example expression to change the reply if the test reports a certain item.
For example, I have the test setup at the moment and the reply is pure4.maildistiller.compure1.maildistiller.compure2.maildistiller.compure3.maildistiller.com. Basically I want to search for the existence of the word maildistiller in the returned string and make the reply simply Maildistiller.
As above is there any way to make the history charts bigger?
Thanks again!
For example, I have the test setup at the moment and the reply is pure4.maildistiller.compure1.maildistiller.compure2.maildistiller.compure3.maildistiller.com. Basically I want to search for the existence of the word maildistiller in the returned string and make the reply simply Maildistiller.
As above is there any way to make the history charts bigger?
Thanks again!
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
"Tune up Reply value" option may look like:
Also, you may use "Use Warning status if" option, located on Test properties dialog with expression like:
With this option, Test item will get "Warning" status if %DnsResults% will return record without word "maildistiller".
Code: Select all
if ("maildistiller" in "%DnsResults%") Maildistiller
Code: Select all
not ("maildistiller" in "%DnsResults%")
You may use Log Analyzer to get full screen charts (menu View->Log Analyzer)As above is there any way to make the history charts bigger?