debugging dns packet

Function

The debugging dns packet command enables the debugging of packets sent and received by the DNS module.

The undo debugging dns packet command disables the debugging of packets sent and received by the DNS module.

By default, the debugging of packets sent and received by the DNS module is disabled.

Format

debugging dns { ipv4 packet | ipv6 packet }

undo debugging dns { ipv4 packet | ipv6 packet }

Parameters

Parameter Description Value
ipv4 packet

Enable the debugging of IPv4 packets sent and received by the DNS module.

-

ipv6 packet

Enable the debugging of Ipv6 packets sent and received by the DNS module.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
dns debug

Usage Guidelines

Usage Scenario

If you want to view information about messages sent and received by the DNS module, run the debugging dns event command.

If you want to view information about IPv4 packets sent or received by the DNS module, run the debugging dns ipv4 packet command to enable the debugging function.

To check information about IPv6 packets on the DNS module, run the debugging dns ipv6 packet command to enable debugging of the IPv6 packets.

Example

# Display information about IPv4 packets sent or received by the DNS module.
<HUAWEI> debugging dns ipv6 packet
Jan 13 2021 07:13:28.921 HUAWEI %%01DNS/7/dns_ipv6_packet(d):CID=0x807504e0;DNS IPv6 PKT: PKT Type(Send IPv6 pkt); PKT Content: 0a00010000010000 000000000677756a 69616e0000010001 .
# Enable debugging of IPv6 packets on the DNS module.
<HUAWEI> debugging dns ipv6 packet
Aug  1 2014 16:11:44.028 HUAWEI %%01DNS/7/dns_ipv6_packet(d):CID=0x80750490;DNS IPv6 PKT: PKT Type(Send IPv6 pkt); PKT Content: 1A000100 00010000 00000000 07687561 77656933 03636F6D 00001C00 01.
Aug  1 2014 16:11:44.036 HUAWEI %%01DNS/7/dns_ipv6_packet(d):CID=0x80750490;DNS IPv6 PKT: PKT Type(Receive IPv6 pkt); PKT Content: 1A008580 00010001 00000000 07687561 77656933 03636F6D 00001C00 01C00C00 1C000100 01518000 10201400 00000000 00000000 00000000 01.
Table 1 Description of the debugging dns packet command output
Item Description
PKT Type

DNS packet type.

PKT Content

DNS packet content.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic