HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Services Conf - Page 72

Specifying the source interface for DNS packets, Displaying and maintaining IPv4 DNS

Page 72 highlights

Step 2. Set the DSCP value for DNS packets. Command dns dscp dscp-value Remarks Optional. By default, the DSCP value for DNS packets is 0. Specifying the source interface for DNS packets By default, the device uses the primary IP address of the output interface of the matching route as the source IP address of a DNS request. Therefore, the source IP address of the DNS packets may vary with DNS servers. In some scenarios, the DNS server only responds to DNS requests sourced from a specific IP address. In such cases, you must specify the source interface for the DNS packets so that the device can always use the primary IP address of the specified source interface as the source IP address of DNS packets. To specify the source interface for DNS packets: Step 1. Enter system view. Command system-view 2. Specify the source interface for dns source-interface DNS packets. interface-type interface-number Remarks N/A By default, no source interface for DNS packets is specified. The device uses the primary IP address of the output interface of the matching route as the source IP address of a DNS request. Displaying and maintaining IPv4 DNS Task Display the static IPv4 domain name resolution table. Display IPv4 DNS server information. Display DNS suffixes. Display the information of the dynamic IPv4 domain name cache. Clear the information of the dynamic IPv4 domain name cache. Command Remarks display ip host [ | { begin | exclude | include } regular-expression ] Available in any view display dns server [ dynamic ] [ | { begin | exclude | include } regular-expression ] Available in any view display dns domain [ dynamic ] [ | { begin | exclude | include } regular-expression ] Available in any view display dns host ip [ | { begin | exclude | include } regular-expression ] Available in any view reset dns host ip Available in user view 64

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165

64
Step
Command
Remarks
2.
Set the DSCP value for
DNS packets.
dns dscp
dscp-value
Optional.
By default, the DSCP value for DNS
packets is 0.
Specifying the source interface for DNS packets
By default, the device uses the primary IP address of the output interface of the matching route as the
source IP address of a DNS request. Therefore, the source IP address of the DNS packets may vary with
DNS servers. In some scenarios, the DNS server only responds to DNS requests sourced from a specific
IP address. In such cases, you must specify the source interface for the DNS packets so that the device
can always use the primary IP address of the specified source interface as the source IP address of DNS
packets.
To specify the source interface for DNS packets:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Specify the source interface for
DNS packets.
dns source-interface
interface-type interface-number
By default, no source interface for
DNS packets is specified. The
device uses the primary IP
address of the output interface of
the matching route as the source
IP address of a DNS request.
Displaying and maintaining IPv4 DNS
Task
Command
Remarks
Display the static IPv4 domain
name resolution table.
display ip host
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display IPv4 DNS server
information.
display dns server
[
dynamic
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display DNS suffixes.
display dns domain
[
dynamic
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the information of the
dynamic IPv4 domain name
cache.
display dns host ip
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Clear the information of the
dynamic IPv4 domain name
cache.
reset dns host ip
Available in user view