netscrew.dev/commands/flush
Command

n flush

Deep DNS/NetBIOS/ARP/Samba cache flush

Short forms:f · fl · flush-dns · flush-cache

Usage — n flush

═══════════════════════════════════════════════════════════════════════════════
  Netscrew ("n") — flush (f, fl, flush-dns) — Deep DNS/NetBIOS/ARP/Samba cache flush (disruptive — asks first)
═══════════════════════════════════════════════════════════════════════════════

USAGE:
  n f .                                flush this machine's name-resolution caches

OPTIONS:
  --yes                            skip the confirmation (scripts)

Target: . = this machine · <host> = remote
Deeper: n f -h = the concept/theory behind this command

The concept behind it — n flush -h

═══════════════════════════════════════════════════════════════════════════════
  Netscrew ("n") — Deep Name Resolution & ARP Cache Reset
═══════════════════════════════════════════════════════════════════════════════

FLUSH COMMANDS:
  n flush               Clear all stale DNS, NetBIOS, Samba, and ARP caches
  n flush-dns           Alias for flush
  n -h wins             Open playbook explaining multi-layer cache desyncs

WHAT GETS CLEARED:
  • Linux:   systemd-resolved cache, /var/lib/samba/gencache*.tdb,
              winbindd_cache.tdb, /var/cache/nscd/*, and kernel ARP table
  • Windows: ipconfig /flushdns, nbtstat -RR (re-register NetBIOS names),
              nbtstat -R (purge NetBIOS cache), and netsh ARP cache delete
  • macOS:   dscacheutil -flushcache and killall -HUP mDNSResponder

BEFORE YOU RUN IT (LINUX):
  Flushing Samba's caches means stopping smbd, nmbd and winbind: every client connected to
  this machine's shares is disconnected and unsaved work over SMB can be lost. n flush shows
  exactly what it will do (including how many SMB clients are connected right now) and
  requires you to type FLUSH to continue. Windows and macOS flushes are milder and ask y/N.
  Use --yes to skip the prompt in scripts.

Back to main help: n -h | Stale ghost playbook: n -h wins