3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

DNSキャッシュのクリア方法(ubuntu22.04版)

Posted at

独自ドメインでのWEBサーバーへの接続テストをする場合など、DNS情報の浸透状況のほかに、クライアントのDNSキャッシュが邪魔をすることがある。
ここでは、このDNSキャッシュのクリア(フラッシュ)方法について記述する。

なお、Windows版、ubuntu20.04版については、【DNSキャッシュのクリア方法】を参照。

Linux (ubuntu22.04) 向け

DNSキャッシュの統計表示

root@localhost:~# resolvectl statistics
表示例
DNSSEC supported by current servers: no

Transactions            
Current Transactions: 0
  Total Transactions: 21
                        
Cache                   
  Current Cache Size: 6
          Cache Hits: 0
        Cache Misses: 63
                        
DNSSEC Verdicts         
              Secure: 0
            Insecure: 0
               Bogus: 0
       Indeterminate: 0  

DNSキャッシュのクリア

root@localhost:~# resolvectl flush-caches
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?