应用视角取证(Linux)
应用视角取证(Linux)
getent hosts app.example.com
time getent ahosts app.example.com
# 跟踪应用真实的 DNS/连接行为:
strace -f -tt -e trace=connect -s 80 -o /tmp/app-net.log <启动应用或复现命令>
grep -E '53|:53|sin_port' /tmp/app-net.log | head -20容器内排查用 docker exec/kubectl exec 进同容器执行 getent,别在宿主机上验证——命名空间与 resolv.conf 都不同。