User guide
Logging Into the Switch Enabling the DNS Resolver
OmniSwitch AOS Release 7 Switch Management Guide March 2015 page 2-17
Enabling the DNS Resolver
A Domain Name System (DNS) resolver is an optional internet service that translates host names into IP
addresses. Every time you enter a host name when logging into the switch, a DNS service must look up
the name on a server and resolve the name to an IP address. You can configure up to three IPv4 domain
name servers and three IPv6 domain name servers that will be queried in turn to resolve the host name. If
all servers are queried and none can resolve the host name to an IP address, the DNS fails. If the DNS
fails, you must either enter an IP or IPv6 address in place of the host name or specify the necessary lookup
tables on one of the specified servers.
Note. You do not need to enable the DNS resolver service unless you want to communicate with the
switch by using a host name. If you use an IP or IPv6 address rather than a host name, the DNS resolver
service is not needed.
You must perform three steps on the switch to enable the DNS resolver service.
1 Set the default domain name for DNS lookups with the ip domain-name CLI command.
-> ip domain-name mycompany1.com
2 Use the ip domain-lookup CLI command to enable the DNS resolver service.
-> ip domain-lookup
You can disable the DNS resolver by using the no ip domain-lookup command. For more information,
refer to the OmniSwitch AOS Release 7 CLI Reference Guide.
3 Specify the IP addresses of the servers with the ip name-server CLI command. These servers will be
queried when a host lookup is requested.
-> ip name-server 189.202.191.14 189.202.191.15 189.255.19.1
Verifying Login Settings
To display information about login sessions, use the following CLI commands:
For more information about these commands, refer to the OmniSwitch AOS Release 7 CLI Reference
Guide.
who Displays all active login sessions (e.g., console, Telnet, FTP, HTTP,
Secure Shell, Secure Shell FTP).
whoami Displays the current user session.
show session config Displays session configuration information (e.g., default prompt, ban-
ner file name, inactivity timer, login timer, login attempts).
show dns Displays the current DNS resolver configuration and status.