Clearing Ubiquiti UniFi USG DNS entries

Another post to save Future Howard the trouble of trying to remember how to fix a problem: when the DNS server in the USG-PRO has cached an old or invalid IP for a host. To verify:

  • SSH to the USG-PRO itself (not the Cloud Key/Controller).
  • To see the list of IPs it has stored, with the incorrect entry: shell cat /etc/hosts
  • To edit (elevated) and remove the offending line shell sudo vi /etc/hosts
  • And to ensure the DNS service forgets the incorrect value: shell clear dns forwarding cache

You’re welcome, Future Howard.




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • USW Pro 24 PoE Teardown
  • 3D Rendering Your In-House GPS
  • Extracting a Full Day’s Video from UniFi NVR