02-09-2021 08:17 AM
In Cisco router IOS, what's the differences between "ip domain lookup" and "ip domain-lookup"? When to use each? Thanks.
Solved! Go to Solution.
02-09-2021 08:41 AM
Hello,
as far as I recall, both commands are doing exactly the same thing, which is enabling interacting with DNS servers.
'Somewhere in IOS Version 12.2, Cisco changed the command syntax from ip domain-lookup to ip domain lookup.
They also changed the command syntax from ip domain-name to ip domain name. The new IOS software still accepts previous versions of the commands.'
The command 'ip domain lookup' is typically used in conjunction with the command 'ip name-server'. When you type e.g.:
ping www.cisco.com
the router will try translate that into an IP address.
It can get annoying when you mistype a command, because the router will automatically try and translate everything that looks like a hostname, and telnet to that host. So unless you really need that functionality, you might disable it (no ip domain(-)lookup).
02-09-2021 08:41 AM
Hello,
as far as I recall, both commands are doing exactly the same thing, which is enabling interacting with DNS servers.
'Somewhere in IOS Version 12.2, Cisco changed the command syntax from ip domain-lookup to ip domain lookup.
They also changed the command syntax from ip domain-name to ip domain name. The new IOS software still accepts previous versions of the commands.'
The command 'ip domain lookup' is typically used in conjunction with the command 'ip name-server'. When you type e.g.:
ping www.cisco.com
the router will try translate that into an IP address.
It can get annoying when you mistype a command, because the router will automatically try and translate everything that looks like a hostname, and telnet to that host. So unless you really need that functionality, you might disable it (no ip domain(-)lookup).
02-09-2021 09:19 AM
both does the same job technically - i can not remmeber there is transition version old to new the command carry fowarded.
domain - IP DNS Resolver
domain-lookup - Enable IP Domain Name System hostname translation
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide