![D-Link DGS-3700 Series Reference Manual Download Page 80](http://html.mh-extra.com/html/d-link/dgs-3700-series/dgs-3700-series_reference-manual_76575080.webp)
DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 80
DNS
R
ELAY
C
OMMANDS
Back to Section Header
The DNS Relay commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
C
OMMAND
P
ARAMETERS
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
To add or delete a static entry into the switch’s DNS resolution table.
Syntax
config dnsr [[primary|secondary] nameserver <ipaddr>|[add|delete] static
<domain_name 32> <ipaddr>]
Description
Use this command to add or delete a static entry into the switch’s DNS resolution
table.
Parameters
primary
- Specify to indicate that the IP address below is the address of the primary
DNS server.
secondary
- Specify to indicate that the IP address below is the address of the
secondary DNS server.
nameserver
- Specify the IP address of the DNS nameserver.
add
- Specify to add the DNS relay function.
delete
- Specify to delete the DNS relay function.
static
- Specify the domain name of the entry.
<ipaddr>
- Specify the IP address of the entry.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To set IP address 10.24.22.5 as the primary DNS server:
DGS-3700-12:5#config dnsr primary nameserver 10.24.22.5
Command: config dnsr primary nameserver 10.24.22.5
Success.
DGS-3700-12:5#
To add the entry “dns1” with IP address 10.24.22.5 to the DNS static table: