Previous Topic: DHCP TestsNext Topic: File I/O Tests


DNS Tests

The DNS test monitors the amount of time required to resolve an IP address for a specified server.

Options and Arguments

DNS tests require the following specific options and arguments:

You specify these options and arguments when you create or modify tests.

Example

Use this example to create a test that monitors the amount of time that is required to resolve the IP address for http://www.ca.com using the name server at 192.168.0.0. (In your environment, use the IP address of your local DNS server.) The entry instructs the agent to test the service once every 300 seconds (5 minutes), and to wait up to 10 seconds for a successful response. The agent calculates statistics over the last 86,400 seconds (1 day).

To create a new test in a policy

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. From the Test Type list, select DNS.
  3. In the Description field, specify ca.com_dns.
  4. In the Test Name field, specify Test DNS lookup.
  5. In the Test Interval field, specify 300.
  6. In the Test Timeout field, specify 10.
  7. In the Samples Per Interval field, specify 1.
  8. In the Statistics Window field, specify 86400.
  9. In the DNS Server field, specify the IP address of your local DNS server (such as 192.168.0.0).
  10. In the Hostname To Resolve field, specify http://jimp.ca.com.
  11. Click Save Test.

When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:

{ 
index=10 
type=dns
desc="Test DNS Lookup for http://ca.com_dns" 
dest="192.168.0.0" 
args="hostname=jimp.ca.com" 
interval=300 
samples=1 
timeout=10 
window=86400 
tos=0 
limit=0 
status=active 
name="Test DNS Lookup"
class=""
context=""
flags="1"
loglevel=2
}

For information about errors you may encounter when running DNS tests, see DNS Test Error Codes.