Manoj Reddy's Reference Guide

clear host

To delete entries from the host-name-and-address cache, use the clear host EXEC command.

clear host {name | * }

Syntax Description

name 

Particular host entry to remove.

*

Removes all entries.

Command Modes

EXEC

Command History

ReleaseModification
10.0

This command was introduced.

Usage Guidelines

The host name entries will not be removed from nonvolatile random-access memory (NVRAM), but will be cleared in running memory.

Examples

The following example clears all entries from the host name-and-address cache:

clear host *

Related Commands

CommandDescription
ip host Defines a static host name-to-address mapping in the host cache.
show hosts Displays the default domain name, the style of name lookup service, a list of name server hosts, and the cached list of host names and addresses.

Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003

All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.