nginx 容器中既没有安装 ping 命令,也没有安装 curl , dig , nslookup 命令,怎么检查某个主机名的 dns 解析是否正常?
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
通过 getent hosts hostname 命令解决了
getent hosts hostname