I'm running a ISR 4221 with "Cisco IOS XE Software, Version 16.04.02".

I see that it has both ip domain name and ip domain-name commands. Why? Is this some sort of compatibility thing? My 7206 seems to prefer ip domain-name.

Just curious.

2 Answers 2


They are the same.

Cisco IOS also supports the command ip domain name starting from its 12.2 Software release.

You can check it here:


The two forms are equivalent. "domain-name" is the older form, and newer versions seem to prefer "domain name". Maybe at some point Cisco realized that removing the hyphen allowed them to extend the "ip domain ..." command line, i.e. you can have:

   ip domain name <xxx>
   ip domain <some other domain related function>
   ip domain <yet another domain related function>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.