STOPPING DNS LOOKUPS AT CLI

Sep 22, 2006 5 Replies
STOPPING DNS LOOKUPS AT CLI open original image

is there any way to effective stop domain looksups of mistyped commands ?



if i use no ip domain lookup, than my traceroutes will be effected...



however it is really annoying to mistype something and have to wait beause its looking up dns



any ideas?



How about:-

formatting link
"Note: You can also use the transport preferred none command on the vty/con/aux lines to prevent the router from attempting to resolve an invalid command into an IP address. The DNS information is available in the output of other commands. However, when you have to initiate a telnet session from the router, place the telnet keyword before the hostname, since the router does not telnet automatically when you type a hostname. Remember to add the ip name-server command to specify the address of the name server."

I haven't tried this but it looks promising.

formatting link

read my post again, i do not want to use no ip domain lookup because than i will not be able to resolve traceroutes and thats not an option in my environment

Thrill5 wrote:

christian koch a écrit :

If you don't want to use the command suggested by bod43, you can use the command:

ip domain name example.com (of course, example.com should match your DNS's domain name)

Any command typed at the cli with a typo will be looked up with the domain name appended to it, and it should return very quickly with an error.

By default, the domain lookup will be tried twice and will time-out after 3 seconds each time. You can change those parameters by using the following commands, if your IOS support it:

ip domain retry x (default x=2, introduced in 12.1.3T) ip domain timeout x (default x=3, introduced in 12.3)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required