Date created: 05/22/21 11:09:41. Last modified: 05/22/21 11:09:59

DNS Flush

Arch

Clear DNS cache:

sudo systemctl restart nscd

 

Debian

Clear DNS cache:

sudo service network-manager restart

 

Ubuntu 18 + Ubuntu 20

Show statistics:

sudo systemd-resolve --statistics

$ sudo systemd-resolve --statistics
DNSSEC supported by current servers: no

Transactions
Current Transactions: 0
Total Transactions: 1036

Cache
Current Cache Size: 24
Cache Hits: 535
Cache Misses: 678

DNSSEC Verdicts
Secure: 0
Insecure: 0
Bogus: 0
Indeterminate: 0

 

Clear DNS cache:

sudo systemd-resolve --flush-caches

$sudo systemd-resolve --flush
$ sudo systemd-resolve --statistics
DNSSEC supported by current servers: no

Transactions
Current Transactions: 0
Total Transactions: 1044

Cache
Current Cache Size: 2
Cache Hits: 535
Cache Misses: 686

DNSSEC Verdicts
Secure: 0
Insecure: 0
Bogus: 0
Indeterminate: 0