On Ubuntu or Mac OS use the following commands:

$ dig google.com any

or

$ host -a google.com