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 进行本地文件的交互
    • SSH Tunnel结合本地代理案例
    • 查询本地电脑外网 IP
    • dns查询
      • 清除 dns
        • mac
        • linux
      • link
    • 内网穿透
  • 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: link
上次更新: 2024/12/01, 17:09:08
查询本地电脑外网 IP
内网穿透

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

最近更新
01
npx 使用指南
10-12
02
cursor
09-28
03
inspect
07-20
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式