Linux command to translate DomainName to IP [closed]

十年热恋 提交于 2019-11-30 10:20:12

问题


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


回答1:


% 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.



回答2:


You can use:

nslookup www.example.com


来源:https://stackoverflow.com/questions/3963085/linux-command-to-translate-domainname-to-ip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!