< Home

display dns forward table

Function

The display dns forward table command displays the DNS forwarding table, including the mapping entry of the source IP address in a specified DNS query message.

Format

display dns forward table [ source-ip ip-address ] [ slot slot-id cpu cpu-id ]

Parameters

Parameter

Description

Value

source-ip ip-address

Specifies the source IP address in query messages.

The value is in dotted decimal notation.

slot-id

Specifies the slot ID.

Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

-

cpu-id

Specifies the CPU ID.

Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After DNS proxy or DNS relay is enabled, you can run the display dns forward table command to view the DNS table of IP addresses.

When the device receives DNS request packets form the client but does not receive DNS reply packets from the server, you need to run the display dns forward table command to view the DNS forwarding table.

Example

# Display the DNS table on the DNS proxy or DNS relay.

<sysname> display dns forward table 
 mng-plane:  

Domain name            : ma.huawei.com
Source IP              : 192.168.1.3
Source port            : 33025
Source packet id       : 42564
Forward packet id      : 1
Query type             : 1
 
 ctrl-plane:  

Domain name            : ma.huawei.com
Source IP              : 192.168.1.3
Source port            : 33025
Source packet id       : 42564
Forward packet id      : 1
Query type             : 1
Table 1 Description of the display dns forward table command output

Item

Description

mng-plane

DNS forwarding table on the management plane.

ctrl-plane

DNS forwarding table on the control plane.

Domain name

Domain name.

Source IP

IP address of the client.

Source port

Port number of the client.

Source packet id

ID of the request packet from the client.

Forward packet id

ID of the forwarded packet, which corresponds to the ID of the request packet from the client.

Query type

Query type:
  • 1: Class-A query
  • 12: Pointer Record (PTR) query
  • 33: SRV query
  • 35: NAPTR query
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >