26 lines
1.1 KiB
Markdown
26 lines
1.1 KiB
Markdown
A simple tool for testing DNS, useful if you do not have access to the underlying server.
|
|
|
|
## Configure DNSTest on Cortes XSOAR
|
|
1. Navigate to **Settings** > **Integrations** > **Servers & Services**.
|
|
2. Search for DNSTest.
|
|
3. Click **Add instance** to create and configure a new integration instance.
|
|
|
|
| **Parameter** | **Description** | **Required** |
|
|
| --- | --- | --- |
|
|
| Default domain | The domain to query for during inital testing (default: google.com)| False |
|
|
| Timeout | Time in seconds to wait for response from DNS server (default: 1 sec) | False |
|
|
|
|
4. Click **Test** to verify operation, using default or provided parameters.
|
|
|
|
## Commands
|
|
Run these commands from the Cortex XSOAR CLI
|
|
### dns-test-get-resolvers
|
|
Returns the nameserver IP addresses configured for the host (e.g. in /etc/resolv.conf)
|
|
|
|
Example: !dns-test-get-resolvers
|
|
|
|
### dns-test-resolve-domain
|
|
Queries all available resolvers for A, AAAA and CNAME records for the provided domain name and returns the results. Optionally increase the wait time for the query by passing a timeout value greater than 1
|
|
|
|
Example: !dns-test-resolve-domain domain=test.com [timeout=5]
|