Jacky's blog
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)

Jack Yang

编程; 随笔
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)
  • 服务器tutorial
  • spring

  • 数据库

  • 运维

    • SSH 进行本地文件的交互
    • 查询本地电脑外网 IP
    • DNS 查询
      • 清除 dns
        • mac
        • linux
      • link
    • 内网穿透
    • macOS 定时任务实现:Git 仓库状态自动同步方案
  • 运营

  • other

  • 《server》
  • 运维
Jacky
2024-11-01
目录

DNS 查询

# 清除 dns

# mac

  1. macOS Monterey 及更新版本:sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  2. macOS High Sierra 及旧版本:sudo killall -HUP mDNSResponder
  3. OS X Yosemite:sudo discoveryutil mdnsflushcache

# linux

在 Linux 上,DNS 缓存通常由 systemd-resolved 或 nscd 等守护进程管理,具体命令如下:

  1. 使用 systemd-resolved:sudo systemctl restart systemd-resolved
  2. 使用 nscd:sudo service nscd restart
  3. 使用 dnsmasq:sudo systemctl restart dnsmasq

根据您的系统配置,选择合适的命令清除 DNS 缓存

# link

  • ping 检测 (opens new window)
  • dns 网站查询,google dns (opens new window)
  • shell
上次更新: 2026/05/06, 22:03:11
查询本地电脑外网 IP
内网穿透

← 查询本地电脑外网 IP 内网穿透→

最近更新
01
Android 端口转发(Forward & Reverse) 的实操与避坑全指南
04-29
02
VisiData 终极生存指南(vd)
04-27
03
macOS 定时任务实现:Git 仓库状态自动同步方案
04-26
更多文章>
Theme by Vdoing | Copyright © 2019-2026 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式