Configuring DNS

You can configure a Domain Name System (DNS) domain name and server addresses to resolve host names.
Using DNS can simplify some network operations through the use of a domain name instead of the numbers in an IP address.
Note: Once the ip dns domain-list command is enabled, syslog messages include the configured domain name. However, the initial syslogs generated during reboot do not contain a domain name.
  1. Enter global configuration mode.
    device# configure terminal
  2. Configure the RUCKUS device to recognize up to four DNS servers.
    device(config)# ip dns server-address 10.157.22.199 10.96.7.15 10.95.7.25 10.98.7.15

    The first entry serves as the primary default address. If a query to the primary address fails to be resolved after three attempts, the next DNS address is queried (also up to three times). This process continues for each defined DNS address until the query is resolved. The order in which the default DNS addresses are polled is the same as the order in which you enter them.

    Alternatively, you can configure the DNS servers on separate lines.

  3. Configure a domain name to resolve host names.
    device(config)# ip dns domain-list swcompany.com

    If you want to use more than one domain name to resolve host names, you can create a list of domain names. The domain names are tried in the order in which they are entered.

  4. Return to privileged EXEC mode.
    device(config)# exit
  5. Initiate a trace route using a DNS name.
    device# traceroute utahtown
    
    Type Control-c to abort
    Sending DNS Query to 10.157.22.199
    Tracing Route to IP node 10.157.22.80
    To ABORT Trace Route, Please use stop-traceroute command.
    Traced route to target IP node 10.157.22.80:
    IP Address  Round Trip Time1  Round Trip Time2
    10.95.6.30  93 msec           121 msec
    This example shows how to trace the route from a RUCKUS Layer 3 device to a remote server identified as utahtown on domain swcompany.com. Assuming that utahtown@company.com domain is already defined on the Layer 3 switch, you need to enter only the host name, utahtown.

The following example shows to how to configure four DNS domain names and two servers.

device# configure terminal
device(config)# ip dns server-address 10.157.22.199
device(config)# ip dns server-address 10.96.7.15
device(config)# ip dns server-address 10.95.7.25
device(config)# ip dns server-address 10.98.7.15
device(config)# ip dns domain-list swcompany.com
device(config)# ip dns domain-list westcoastcompany.com