Disable DNS Lookup in Cisco Routers and Switches
This article discusses how you can disable DNS lookup on Cisco routers and switches and effect when DNS lookup is enabled.
Problem: In privilege EXEC mode, if you type in something other than a Cisco IOS command, the router assumes that you typed a domain name and it tries to resolve what ever you type.
Although this feature is can be useful in some situations, for most of the time, this is a pain, especially if you do not have DNS server configured. The router becomes irresponsive for about 5-6 seconds trying to resolve the name.
The following is an example.
1 2 3 4 5 6 7 8 | R4#wrong-command Translating "wrong-command"...domain server (255.255.255.255) (255.255.255.255) Translating "wrong-command"...domain server (255.255.255.255) % Unknown command or computer name, or unable to find computer address R4# |
Solution:
To disable domain look up type the commands as shown billow.
1 2 3 4 | R4#conf t Enter configuration commands, one per line. End with CNTL/Z. R4(config)#no ip domain-lookup R4(config)# |
Now the output is quick and router does not become irresponsive
1 2 3 4 5 6 7 | R4#wrong-command Translating "wrong-command" Translating "wrong-command" % Unknown command or computer name, or unable to find computer address R4# |
Dharshin



















3 Comments on “Disable DNS Lookup in Cisco Routers and Switches”
Great post! Just wanted to let you know you have a new subscriber- me!
Thank you for your post, it was really helpful. I couldn’t find this information before and this is really easy…
Thank you - excellent, just what I needed. And simple, no frills. Many thanks.