#DNS

28 solutions

Enable DNS over HTTPS (DoH) on Windows
WindowsDNSprivacypowershell

Encrypt your DNS lookups with a DoH server so your ISP cannot easily see which sites you visit.

Low risk ✓ 2026-09-18
Flush the DNS resolver cache on Windows
WindowsnetworkDNStroubleshooting

Purge cached DNS lookups so Windows re-resolves hostnames from scratch — the fix for 'the new server is live but my browser still hits the old one'.

Medium risk ✓ 2026-09-17
Query DNS Records with dig on macOS
macOSmacosnetworkDNS

Look up A, MX or TXT records for any domain and test against a specific DNS server like 8.8.8.8.

Low risk ✓ 2026-09-19
Edit the Windows hosts file from the command line
WindowsFilesDNSadmin

Open the hosts file in Notepad as administrator, or append an entry with Add-Content.

Medium risk ✓ 2026-09-18
Diagnose DNS Problems with nslookup
WindowsnetworkcmdDNS

Resolve a domain manually and see which DNS server answers — the first test when a site won't load.

Low risk ✓ 2026-09-19
Block a Website by Editing /etc/hosts
macOSnetworkDNShosts-file

Point a domain to 127.0.0.1 so every browser on this Mac fails to reach it.

Medium risk ✓ 2026-09-18
Set custom DNS servers with nmcli
LinuxnmclinetworkDNS

Point a Wi-Fi or wired profile at faster or privacy-friendly resolvers like 1.1.1.1.

Low risk ✓ 2026-09-18
Set DNS Servers per Network Service with networksetup
macOSconfigurationnetworksetupDNS

Use networksetup -setdnsservers to set, inspect, or reset DNS servers for any macOS network service.

Low risk ✓ 2026-09-17
Check Which DNS Servers Your Mac Uses
macOSnetworknetworksetupDNS

Read the configured DNS servers for Wi-Fi or Ethernet with networksetup -getdnsservers.

Low risk ✓ 2026-09-18
Flush the DNS cache with `resolvectl flush-caches`
Linuxcachesystemd-resolvedDNS

On systemd-based Linux (Ubuntu, Fedora, Debian 12+), the local DNS stub cache is managed by systemd-resolved — and the command to clear it is easy to forget because it changed from systemd-resolve.

Low risk ✓ 2026-09-17
Change DNS servers on a Windows adapter from PowerShell
WindowsnetworkDNSpowershell

Set custom DNS resolvers on a specific interface, or reset them to DHCP defaults, with one cmdlet instead of the network settings GUI.

Medium risk ✓ 2026-09-17
Test DNS Servers Directly with nslookup
macOSDNSnslookupDiagnostics

Use nslookup's classic two-argument form to query a chosen resolver and inspect record types.

Low risk ✓ 2026-09-17