cisco — Setting Up DNS

Setting Up DNS If you use the device IP address as its hostname, the IP address is used and no DNS query occurs. If you configure a hostname that contains no periods (.), a period followed by the default domain name is appended to the hostname before the DNS query is made to map the name to an IP address. The default domain name is the value set by the ip domain name command in global configuration mode. If there is a period (.) in the hostname, the Cisco IOS software looks up the IP address without appending any default domain name to the hostname. Follow these steps to set up your switch to use the DNS:

Procedure Administering the Device Setting Up DNS Command or Action Purpose Step 3 hostname name Example: Device(config)# hostname remote-users Configures a system name. When you set the system name, it is also used as the system prompt. The default setting is Switch. The name must follow the rules for ARPANET hostnames. They must start with a letter, end with a letter or digit, and have as interior characters only letters, digits, and hyphens. Names can be up to 63 characters. Step 4 end Example: remote-users(config)#end remote-users# Returns to priviliged EXEC mode. Step 5 show running-config Example: Device# show running-config Verifies your entries.

Step 6 copy running-config startup-config Example: Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. Command or Action Purpose Step 1 enable Example: Enables privileged EXEC mode. • Enter your password if prompted. Administering the Device 21