![D-Link DGS-3700 Series Reference Manual Download Page 81](http://html.mh-extra.com/html/d-link/dgs-3700-series/dgs-3700-series_reference-manual_76575081.webp)
DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 81
DGS-3700-12:5#config dnsr add static dns1 10.24.22.5
Command: config dnsr add static dns1 10.24.22.5
Success.
DGS-3700-12:5#
To delete the entry “dns1” with IP address 10.24.22.5 from the DNS static table:
DGS-3700-12:5#config dnsr delete static dns1 10.24.22.5
Command: config dnsr delete static dns1 10.24.22.5
Success.
DGS-3700-12:5#
enable dnsr
Purpose
To enable DNS relay.
Syntax
enable dnsr {[cache | static]}
Description
Use this command to enable DNS relay.
Parameters
cache
- Specify to enable the cache lookup for the DNS relay on the switch.
static
- Specify to enable the static table lookup for the DNS relay on the switch.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable DNS relay:
DGS-3700-12:5#enable dnsr
Command: enable dnsr
Success.
DGS-3700-12:5#
To enable cache lookup for DNS relay:
DGS-3700-12:5#enable dnsr cache
Command: enable dnsr cache
Success.
DGS-3700-12:5#
To enable static table lookup for DNS relay:
DGS-3700-12:5#enable dnsr static
Command: enable dnsr static
Success.
DGS-3700-12:5#
disable dnsr
Purpose
To disable DNS relay on the switch.