Lookup the IP(s) associated with a hostname (A records)

dig

dig +short {{example.com}}

click the source code to copy install dig on any operating system with command-not-found.com