Cisco Disable DNS lookup or Configure DNS



Cisco Disable DNS lookup or Configure DNS


On Cisco Router or Switch if you type a wrong command in the privileged mode, the switch/router thinks that user trying to connect to a remote host via telnet. So router/switch performs a DNS lookup.


If DNS is not configured on the Router/Switch the console prompt will hang until the DNS timeouts.


Router#abcd
Translating "abcd"...domain server (255.255.255.255)
 (255.255.255.255)
Translating "abcd"...domain server (255.255.255.255)

% Unknown command or computer name, or unable to find computer
address
Router#


To resolve this option option or to disable DNS doamin lookup use below command.


Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#WR




The second option is to configure DNS and point it to your DNS server. as shown below,


Router(config)# ip name-server 192.168.100.1