I feel silly asking this question… Sometimes I have a domain that I want to know the IP of. For example google.com -> 173.194.41.135.
What I usually do for this is use tracert, which besides doing a traceroute, shows the IP.
But this is silly because turning domains to IPs is what DNS is all about. Isn’t there some basic tool that does just that?
I’m interested in hearing about a tool like that for both Windows and Linux. Also I’d be happy to hear about any Python function that does this.
nslookupis to be seen as deprecated. Use thedigcommand to get DNS information for a host name.With that said,
nslookuptypically works well for the simple cases.