Previous page Next page

CLI Commands

The following commands configure DNS client using the CLI. (You must be in Global Configuration mode):

Enabling & Configuring DNS parameters:

ip domain-lookup (to enable DNS Client)

ip name-server <a.b.c.d> (to add a DNS server address)

ip domain-list <name> and ip domain-name <name> (to add a DNS suffix)

Disabling & Clearing DNS parameters:

no ip domain-lookup (to disable DNS Client)

no ip name-server <a.b.c.d> (to remove a DNS server address)

no ip domain-list <name> (to remove a DNS suffix)

no ip domain-name <name> (same as no ip domain-list)

Display DNS configuration:

show hosts (display the DNS Client configuration)


Previous page Next page