是否有任何 Linux 命令可以将域名转换为 IP 地址?
用这个
$ 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.