cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3962
Views
10
Helpful
2
Replies

What's the differences between "ip domain lookup" and "ip domain-lookup"?

In Cisco router IOS, what's the differences between "ip domain lookup" and "ip domain-lookup"? When to use each? Thanks.

1 Accepted Solution

Accepted Solutions

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).

View solution in original post

2 Replies 2

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).

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card