To determine a website’s IP address, you can use the dig command, which comes standard with macOS. To “dig” the site via Terminal, we simply open up Terminal and then run the dig command on URL, which will then return the IP address as output.
$ dig www.ryansteven.com +short
140.52.27.501
Note: The +short option keeps the output to just the information we need, which is the IP address.