1. 程式人生 > >linux arp 命令清除dns cache

linux arp 命令清除dns cache

詳細 ice color int proto -s 緩存 可能 hostname

概述
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