小编典典

将域名转换为 IP 的 Linux 命令

all

是否有任何 Linux 命令可以将域名转换为 IP 地址?


阅读 60

收藏
2022-07-28

共1个答案

小编典典

用这个

$ dig +short codingdict.com/

69.59.196.211

或这个

$ host codingdict.com/

codingdict.com has address 69.59.196.211
codingdict.com mail is handled by 30 alt2.aspmx.l.google.com.
codingdict.com mail is handled by 40 aspmx2.googlemail.com.
codingdict.com mail is handled by 50 aspmx3.googlemail.com.
codingdict.com mail is handled by 10 aspmx.l.google.com.
codingdict.com mail is handled by 20 alt1.aspmx.l.google.com.
2022-07-28