Linux command to convert DomainName to IP

Is there any Linux command to translate a domain name to IP?

+58
linux ip domain-name
Oct 18 '10 at 20:26
source share
2 answers
% dig +short stackoverflow.com 69.59.196.211 

or

 % host stackoverflow.com stackoverflow.com has address 69.59.196.211 stackoverflow.com mail is handled by 30 alt2.aspmx.l.google.com. stackoverflow.com mail is handled by 40 aspmx2.googlemail.com. stackoverflow.com mail is handled by 50 aspmx3.googlemail.com. stackoverflow.com mail is handled by 10 aspmx.l.google.com. stackoverflow.com mail is handled by 20 alt1.aspmx.l.google.com. 
+100
Oct 18 '10 at 20:27
source share

You can use:

 nslookup www.example.com 
+36
Oct 18 '10 at 20:27
source share



All Articles