| Parameter name | Required | Default value | Description |
|---|---|---|---|
timeout | - | - | Ordinary query timeout is 6 seconds, trace query timeout is 3 seconds |
host | yes | - | Domain name to be queried |
dnsserver | no | null | Custom DNS server address |
ipVersion | no | null | Parsing type, IPv4: A, IPv6: AAAA, settings are ignored after queryType, the name must be ipVersion |
queryType | no | A | DNS record types: A, AAAA, NS, CNAME, SOA, MX, TXT, etc. |
matchall | no | 0 | Whether to require all results to match the whitelist |
whitelist | no | null | Result whitelist, retaining only matching records |
cnamewhite | no | null | CNAME whitelist for filtering results |
cnameblack | no | null | CNAME blacklist for filtering results |
trace | no | 0 | Whether to enable Tracing mode (+trace) |
| Indicator index | Indicator name | Description |
|---|---|---|
| 0 | DNS Lookup Time | The time taken to resolve the DNS server address (if the server is a domain name) |
| 1 | DNS+trace takes time | Total time spent on DNS query + trace query |
| 2 | Whether parsing failed | Whether the parsing failed, it is 1 when it fails. |
| 3 | Whether the test failed | Whether the whitelist check failed, it is 1 when it fails. |
| 5 | TTL value | TTL of first address |
| 57 | CNAME list |
www.example.com. 300 IN A 93.184.216.34| Error code | meaning |
|---|---|
| 612007 | DNS resolution failed |
| 699001 | Whitelist verification failed |
| 699002 | Invalid query type |
| 699004 | CNAME verification failed |