CCNA House Keeping Commands - IP Domain Lookup

IP Domain-lookup Commands.to Cisco our CCNA students will inevitably make
For people coming into Cisco networking for thetyping mistakes, (although even the most dog
first time they are always surprised by a few ofeared of network administrators will also making
the default command settings that are present ontyping mistakes)
the Cisco routers and switches.To prevent the console from timing out every
These default command settings can be a realtime a typo is issued it important to turn the "ip
pain if left at their default settings and unless theydomain-lookup" off. At this point it is important to
are changed the CCNA student is generally goingmention that only typos executed at the "user
to become increasingly frustrated.mode" and "privileged exec mode" will cause a
We continually practice the procedure oftime-out to occur, if a typo is issued under any
instructing our CCNA students (and sometimesoff the other commands prompts the Cisco
our CCNP students) that they must change thedevice will simply return an error message and
default settings in order to make theirreturn the command prompt without any console
programming via the command line a lot moretimeout.
fluid and without interruption.To turn off the default issue the following
The first of our house keeping commands is thecommand:
"ip domain-lookup" command.Note: The prompt is "router" but this command
The ip domain-lookup command is enabled bycan also be executed on a switch.
default. The purpose of this command is to assistRouter(config)#no ip domain-lookup
the administrator resolve names into ip addressesThe emphasis is on the "no" argument. Execute
so they may telnet to remote devices. Thisthe command by pressing the return key. At this
seems on the face of it a good setting, the issuespoint if a typo is executed at the "user mode"
are that the system does not understand theand "privileged exec mode" will not cause a
difference between a valid hostname and a typo.time-out to occur but instead the Cisco device will
In most cases if not all the system will interpret atry to interrupt a typo to an IP address using only
typo as a hostname and start to broadcast outthe local host table held within the "ip host" table.
to DNS on the address of 255.255.255.255.Using the local "IP host" table is quite common, so
The broadcast itself is a minor nuisance on therather than having to enter the full IP address of
network but the major issue that our CCNAthe destination device that you have to telnet to
students find is that in a majority of times theyou would simply enter the host name of the
console from which they are configuring thedevice and the Cisco device will lookup the name
system from be it tera-term, hyper terminal etcin the local host table for a matching name and
will lock up whilst it is broadcasting out for thethen resolve the name to the associated IP
non-existent IP address for the typo. Being newaddress.