How can I resolve a hostname to an IP address in a Bash script?

What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论