It is very important to maintain your anonymity. To succeed in this you have to use tools that transmit everything through the tor network. Otherwise you will send UDP or ICMP packets to your target and in that case you are not any longer anonymous! So this is why we are going to use tor-resolve.
tor-resolve is included in tor package when you download it as a bundle from tor site.
All you have to do is run it from command-line or terminal in this way:
to get www.example.com ip address.