DNS Endpoint Plugin
DNS client plugin allowing for various DNS queries.
Configuration
The following configuration can be set:
| Setting | Type | Default | Description |
|---|---|---|---|
| Address | ip | DNS server IP; if omitted, default is used | |
| QueryType | string | A | Query type (A, AAAA, CNAME, MX, NS, TXT) |
| Timeout | duration | 1s | Query timeout |
Example
The following example sets the host.
@DNS {
Address 8.8.8.8
QueryType AAAA
}
Outgoing Message “Query”
Outgoing message will send DNS query.
| Data | Type | Default | Description |
|---|---|---|---|
| Host | string | - | Host to query |
| Timeout | duration | (configuration) | ICMP timeout |
| QueryType | string | (configuration) | Query type (A, AAAA, CNAME, MX, NS, TXT) |
Example: Basic
We can send message without any extra paramters.
Query >DNS aaseq.com
Example: Override type
We can override any parameter (other than Host) in the outgoing message.
Query >DNS {
Host aaseq.com
QueryType MX
}
Incoming Message “Answer”
Reply will arrive with status of the ping.
| Data | Type | Description |
|---|---|---|
| Status | string | Will be Success if operation succeeds |
| Address | ip | First address in answer |
| A | Information returned | |
| AAAA | Information returned | |
| CNAME | Information returned | |
| MX | Information returned | |
| NS | Information returned | |
| TXT | Information returned |
Example: Basic
Successful response.
Reply <DNS {
Address "104.21.112.1"
Status Success
A TimeToLive=300 {
Address "104.21.112.1"
}
A TimeToLive=300 {
Address "104.21.80.1"
}
}
Example: Failure
Timed out response.
Reply <DNS {
Status Error
}