D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
258
33
DOMAIN NAME SYSTEM (DNS) RESOLVER COMMANDS
The DNS Resolver provides a solution to translate the domain name to IP address for the application on the switch itself.
The Domain Name System (DNS) Resolver commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command Parameters
config name_server [[add |delete ] <ipaddr> {primary} | timeout <second 1-60>]
show name_server
create host_name <name 255> <ipaddr>
delete host_name [<name 255> | all]
show host_name {static | dynamic}
enable dns_resolver
disable dns_resolver
Each command is listed, in detail, in the following sections.
config name_server
Purpose Used to configure the DNS Resolver name server of the switch.
Syntax
config name_server [[add |delete ] <ipaddr> {primary} | timeout <second 1-60>]
Description The config name_server command is used to configure the DNS Resolver name server of the
switch. Note that only when add a name server, the parameter “primary” will be resolved.
Other conditions won’t resolve the parameter “primary”. It means that when delete a name
server, just check the IP address. If the IP address is the same to the name server’s, the
name server will be deleted, don’t check the priority parameter.
When adding a name server, if one primary name server exists in the static name server
table, then add a new primary name server, the existing primary name server will be changed
to a normal name server. If the added primary name server’s IP address is the same to an
existed normal name server’s IP address, the existing normal name server will be changed to
a primary name server, but won’t add new name server. When no primary name server is
specified, the first configured name server will auto change to primary name server.. If the
deleted name server’s IP address equals to one of the existing name servers’ IP addresses,
regardless whether a normal name server or primary name server, the name server will be
deleted.
Parameters
add - Add DNS Resolver name server
delete - Delete DNS Resolver name server
ipaddr - The DNS Resolver name server IP address
timeout - The maximum time waiting for a responce from a specified name server.
primary - Specify the name server is a primary name server.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To add DNS Resolver primary name server 10.10.10.10: