NSLookup
Query a DNS record directly from a DNS server and get alerted when the answer is missing, fails, or lacks the expected value.
The NSLookup check queries a record for a hostname directly from a DNS server, much like the nslookup command-line tool. It reports when the server does not answer, returns an error, returns no matching record, or an expected value is missing. The check runs on the device with the octoja agent on Windows, Linux, and macOS (each in x64 and Arm64 builds), every 5 minutes by default.
Steps
- Open the device.
- Choose Checks → Add Check → NSLookup.
- Enter the Hostname and Record type and adjust the other fields if needed.
To cover several devices, assign the check with a config package. One check queries exactly one hostname and one record type. Add further checks for other names or types.
Settings
- Without DNS server (optional), the check uses the first DNS server of an active network adapter on the device. A hostname you enter is first resolved through the device, and the first returned address is queried. Queries always go to port 53.
- Short names without a dot, such as
srv-dc, are tried with the device's DNS suffixes first, then without a suffix. A name containing a dot or ending in a dot (srv-dc.) is queried unchanged. - For PTR lookups, the check builds the reverse-lookup name from an IP address automatically.
Matching the expected value
Matching is case-insensitive in both cases. It is enough for one of the returned records to match.
Results
The check reports:
- Hostname and record type
- The name actually queried, under Queried, when a short name was completed with a DNS suffix
- The address of the DNS server queried
- Response time in milliseconds and response code, e.g.
NOERROR - Up to 16 records of the selected type
- Whether the expected value was found, if one is configured
Notes
- The check sends the DNS query itself instead of using the operating system's resolver. To test whether names resolve on the device, use the DNS Resolution check.
- The query is sent over UDP. If the server reports a truncated answer, the check repeats it over TCP.
See also: Set up alerts for a check
Was this helpful?
More in Network
3CX Phone SystemBandwidthDNS ResolutionDNS Blacklist (RBL)Still need help? Ask the team