resolvectl

systemd-resolved control

low risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Shows DNS configuration and cache. See the flags and examples below, and run `man resolvectl` for the full reference.

Examples
resolvectl statusDNS servers per link · explain & risk-check →
resolvectl query example.comResolve via resolved · explain & risk-check →
resolvectl flush-cachesClear DNS cache · explain & risk-check →
Related
dig
Open the full explainer →More in Networking

Reference text is hand-written and may be incomplete — check man resolvectl for your version. Test destructive commands on a non-production system first.