The dns request-type check command enables DNS request packet type detection.
The undo dns request-type check command disables DNS request packet type detection.
dns request-type check { start-type [ to end-type ] action | default-action } { alert | allow | block }
undo dns request-type check { all | start-type [ to end-type ] }
| Parameter | Description | Value |
|---|---|---|
start-type end-type |
Indicates the query type of a DNS packet. |
The value is an integer ranging from 0 to 65535. The value of end-type must be no smaller than that of start-type. |
action |
Indicates the action. |
- |
default-action |
Indicates the default action. |
- |
allow |
The packet is permitted. |
- |
alert |
The packet is permitted, and a log is recorded. |
- |
block |
The packet is blocked, and a log is recorded. |
- |
all |
Indicates all query types. |
- |
To detect all query types, set a default action (default-action).
You can also detect a specified query type. When the DNS packet query type is as specified, the corresponding processing action is implemented. The default processing action applies to other query types.
By default, this function is disabled.