Regolare rapidamente il server DNS in macOS

# Clear and receive from AP
networksetup -setdnsservers Wi-Fi EMPTY
networksetup -setdnsservers "Thunderbolt Ethernet" EMPTY

# localhost
networksetup -setdnsservers Wi-Fi 127.0.0.1
networksetup -setdnsservers "Thunderbolt Ethernet" 127.0.0.1

# Cloudflare
networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1
networksetup -setdnsservers "Thunderbolt Ethernet" 1.1.1.1 1.0.0.1

# Google
networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.8.4
networksetup -setdnsservers "Thunderbolt Ethernet" 8.8.8.8 8.8.8.4

# Open DNS
networksetup -setdnsservers Wi-Fi 208.67.222.222 208.67.222.220
networksetup -setdnsservers "Thunderbolt Ethernet" 208.67.222.222 208.67.222.220

# Show result
networksetup -getdnsservers Wi-Fi
networksetup -getdnsservers "Thunderbolt Ethernet"