码迷,mamicode.com
首页 > 系统相关 > 详细

linux arp 命令清除dns cache

时间:2017-05-12 21:58:13      阅读:903      评论:0      收藏:0      [点我收藏+]

标签:--   use   etc   类型   log   mac   用法   网络   mask   

概述
       arp命令用于管理和查看内核ipv4网络ARP缓存。它可用于向缓存表中添加和删除记录。ARP是地址解析协议(Address Resolution Protocol)的缩写,用于找出给定ipv4地址的mac地址

用法:
  arp [-vn]  [<HW>] [-i <if>] [-a] [<hostname>]                 <-显示 ARP 缓存
  arp [-v]  [-i <if>] -d  <host> [pub]  <- 删除ARP记录
  arp [-vnD] [<HW>] [-i <if>] -f  [<filename>]      <- 从文件添加记录
  arp [-v]   [<HW>] [-i <if>] -s  <host> <hwaddr> [temp]   <-添加记录
  arp [-v]   [<HW>] [-i <if>] -Ds <host> <if> [netmask <nm>] pub          <-‘‘-

        -a                       以另一种(BSD)风格显示(所有)主机
        -s, --set                设置一个新的 ARP 记录
        -d, --delete             删除指定记录
        -v, --verbose            显示详细信息
        -n, --numeric            不解析名称
        -i, --device             指定网络接口(如 eth0)
        -D, --use-device         读取所给定设备的硬件地址
        -A, -p, --protocol       指定协议族
        -f, --file               从文件或 /etc/ethers 中读取新记录

  <HW>=使用 -H <hw> 指定硬件地址类型。默认:ether
  所有可能硬件类型列表:
    ash (Ash) ether (以太网) ax25 (AMPR AX.25) 
    netrom (AMPR NET/ROM) rose (AMPR ROSE) arcnet (ARCnet) 
    dlci (Frame Relay DLCI) fddi (Fiber Distributed Data Interface) hippi (HIPPI) 
    irda (IrLAP) x25 (generic X.25) eui64 (Generic EUI-64) 

域名重新指向ip或要删除本地的dns缓存才能访问到新ip,arp -d *删除所有dns cache

linux arp 命令清除dns cache

标签:--   use   etc   类型   log   mac   用法   网络   mask   

原文地址:http://www.cnblogs.com/cdyboke/p/6847130.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!