Disable DNS Lookup in Cisco Routers and Switches

This item was filled under [ Cisco ]

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.

View Code SHELL
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.

View Code SHELL
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

View Code SHELL
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

Share This:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • blogmarks
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • Netvibes
  • Print this article!
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yahoo! Buzz
  • Furl
  • Yigg

Tagged with: [ , , , , ]
You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

3 Comments on “Disable DNS Lookup in Cisco Routers and Switches”

  • 5 June, 2009, 8:19

    Great post! Just wanted to let you know you have a new subscriber- me!

  • Sabina Monica Popescu
    22 June, 2009, 21:10

    Thank you for your post, it was really helpful. I couldn’t find this information before and this is really easy… :)

  • Manda O'Connell
    15 July, 2009, 16:06

    Thank you - excellent, just what I needed. And simple, no frills. Many thanks.