How To Get A Reverse DNS Lookup On The Command Line

Author: , September 1st, 2021

There are three commands in Linux to easily get a reverse DNS lookup with: dig, host and nslookup. Here are examples of each: shell> dig -x 3.214.2.238 +short

shell> dig -x 3.214.2.238

shell> host 3.214.2.238

shell> nslookup 3.214.2.238

How To Fix DNS Lookup Issues on Macos Mojave 10.14.6

Author: , July 22nd, 2020

dscacheutil -flushcache System Preferences -> Network -> Advanced -> DNS -> Add 1.1.1.1, 8.8.4.4 and 8.8.8.8 at the top. If they are already there, CHANGE THE ORDER!