xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
227
30
D
OMAIN
N
AME
S
ERVER
(DNS)
R
ELAY
C
OMMANDS
The Domain Name Server (DNS) relay commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command
Parameters
config dnsr
[[primary | secondary] nameserver <ipaddr> | [add | delete] static
<domain_name 32> <ipaddr>]
enable dnsr
{[cache | static]}
disable dnsr
{[cache | static]}
show dnsr
{static}
Each command is listed, in detail, in the following sections.
config dnsr
Purpose
Used to configure the DNS relay function.
Syntax
config dnsr [[primary | secondary] nameserver <ipaddr> | [add | delete] static
<domain_name 32> <ipaddr>]
Description
This command is used to configure the DNS relay function on the Switch.
Parameters
primary
−
Indicates that the IP address below is the address of the primary DNS server.
secondary
−
Indicates that the IP address below is the address of the secondary DNS server.
nameserver <ipaddr>
−
The IP address of the DNS nameserver.
[add | delete]
– Indicates whether to add or delete the DNS relay function.
<domain_name 32>
−
The domain name of the entry.
<ipaddr>
−
The IP address of the entry.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set IP address 10.43.21.12 of primary.
DGS-3450:admin# config dnsr primary nameserver 10.43.21.12
Command: config dnsr primary nameserver 10.43.21.12
Success
DGS-3450:admin#
Example usage:
To add an entry domain name dns1, IP address 10.43.21.12 to DNS static table: