Page 261 / 757 Scroll up to view Page 256 - 260
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
257
show dnsr
Purpose
Used to display the current DNS relay status.
Syntax
show dnsr {static}
Description
This command is used to display the current DNS relay status.
Parameters
static
Allows the display of only the static entries into the DNS relay table. If this parameter is
omitted, the entire DNS relay table will be displayed.
Restrictions
None.
Example usage:
To display DNS relay status:
DGS-3627:admin# show dnsr
Command: show dnsr
DNSR Status
: Disabled
Primary Name Server
: 0.0.0.0
Secondary Name Server
: 0.0.0.0
DNSR Cache Status
: Disabled
DNSR Static Table Status : Disabled
DNS Relay Static Table
Domain Name
IP Address
--------------------------------
---------------
www.123.com.tw
10.12.12.123
Total Entries: 1
DGS-3627:admin#
Page 262 / 757
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:
Page 263 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
259
DGS-3627:admin# config name_server add 10.10.10.10 primary
Command: config name_server add 10.10.10.10 primary
Success.
DGS-3627:admin#
To delete DNS Resolver name server 10.10.10.1:
DGS-3627:admin# config name_server delete 10.10.10.10
Command: config name_server delete 10.10.10.10
Success.
DGS-3627:admin#
To configure DNS Resolver name server time out to 10 seconds:
DGS-3627:admin# config name_server timeout 10
Command: config name_server timeout 10
Success.
DGS-3627:admin#
show name_server
Purpose
Used to display the current DNS Resolver name servers and name server time out on the
switch.
Syntax
show name_server
Description
The show name_server command is used to display the current DNS Resolver name servers
and name server time out on the switch.
Parameters
None.
Restrictions
None.
Example usage:
To display the current DNS Resolver name servers and name server time out:
Page 264 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
260
DGS-3627:admin#
show name_server
Command: show name_server
Name Server Timeout: 3 seconds
Static Name Server Table:
Server IP Address
Priority
---------------------- --------------
20.20.20.20
Secondary
10.1.1.1
Primary
Dynamic Name Server Table:
Server IP Address
Priority
---------------------- --------------
10.48.74.122
Primary
DGS-3627:admin#
create host_name
Purpose
Used to create the static host name entry of the switch.
Syntax
create host_name <name 255> <ipaddr>
Description
The create host name command is used to create the static host name entry of the switch. If
the created host name entry exists in the dynamic host name table, the existing dynamic host
name entry will be deleted, and then add the created host name entry is added into the static
host name table and a log for duplicate is recorded.
Parameters
<name 255>
- The host’s host name
<ipaddr>
- The host’s IP address
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create static host name “www.example.com”:
DGS-3627:admin# create host_name www.example.com 10.10.10.10
Command: create host_name www.example.com 10.10.10.10
Success.
DGS-3627:admin#
delete host_name
Purpose
Used to delete the static or dynamic host name entries of the switch.
Syntax
delete host_name [<name 255> | all]
Description
The delete host_name command is used to delete the static or dynamic host name entries of
the switch.
Parameters
<name 255>
- The host’s host name.
all
- All of the static and dynamic host name entries.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Page 265 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
261
To delete the static host name entry “www.example.com”:
DGS-3627:admin# delete host_name www.example.com
Command: delete host_name www.example.com
Success.
DGS-3627:admin#
show host_name
Purpose
Used to display the current host name.
Syntax
show host_name {static | dynamic}
Description
The show host_name command is used to display the current host name entries. If the
parameters for “static” and “dynamic” are not specified, both static and dynamic host name
entries will be displayed.
Parameters
static
- Display the static host name entries
dynamic
- Display the dynamic host name entries
Restrictions
None.
Example usage:
To display the static and dynamic host name entries:
DGS-3627:admin#
show host_name
Command: show host_name
Static Host Name Table
Host Name
IP Address
----------------------------------
------------------
www.example.com
10.10.10.10
www.exampla.com
20.20.20.20
Total Static Entries: 2
Dynamic Host Name Table
Host Name
IP Address
TTL
----------------------------------
---------------
--------
www.examplc.com
30.30.30.30
60 minutes
www.exampld.com
40.40.40.40
10 minutes
Total Dynamic Entries: 2
DGS-3627:admin#
enable dns_resolver
Purpose
Used to configure the DNS Resolver state of the switch to enabled.
Syntax
enable dns_resolver
Description
The enable dns_resolver command is used to configure the switch’s DNS Resolver state.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top