Hostxpeed
Login Get Started →
Getting Started

How to Flush DNS Cache

2 min read
20 views
Jun 10, 2026

Prerequisites

Before flushing DNS cache, make sure you have:

  • SSH access to your VPS
  • Root or sudo privileges

For systemd-resolved systems

Connect to your VPS:

ssh hxroot@YOUR_SERVER_IP -p 22
sudo systemd-resolve --flush-caches

Or:

sudo resolvectl flush-caches

Check if systemd-resolved is Running

sudo systemctl status systemd-resolved

Restart DNS Resolver

sudo systemctl restart systemd-resolved

✅ DNS cache has been flushed.

Was this article helpful?