User Manual

Table Of Contents
[Parameter]
switch : DNS relay function operation
Setting value Description
enable Enable the DNS relay function
disable Disable the DNS relay function
[Initial value]
dns-forwarding disable
[Input mode]
interface mode
[Description]
Specifies the forwarding address for the DNS relay function on the applicable interface.
This can only be set for VLAN interface.
DNS packets received at a VLAN interface for which this is enabled are forwarded to the address specified by the dns-
forwarding name-server command.
If this command is executed with the "no" syntax, the setting returns to the default.
[Note]
To enable the DNS relay function, you must enable the DNS relay function for the entire system in addition to using this
command.
For VLAN interface, the IPv4 address must be specified.
[Example]
Enable the DNS relay function for VLAN #1.
SWX3220(config)#interface vlan1
SWX3220(config-if)#dns-forwarding enable
Disable the DNS relay function for VLAN #1.
SWX3220(config)#interface vlan1
SWX3220(config-if)#dns-forwarding disable
10.3.3 Set DNS relay function forwarding address
[Syntax]
dns-forwarding name-server server [domain_name]
no dns-forwarding name-server server [domain_name]
[Parameter]
server : A.B.C.D
IPv4 address of DNS server
domain_name : Domain name
Single-byte alphanumeric characters, dot '.', and hyphen '-' (253 characters or less)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Sets the forwarding address of the DNS relay function.
Up to eight servers can be specified.
If you specify a domain name, queries for that domain name are forwarded only to the specified server.
460 | Command Reference | Application