我想知道是否有办法通过python生成dns查询并获取dns响应以及它们的标题,以便在dns响应中看到NXDomain,连接被拒绝,服务器故障等等.
提前致谢
python dns header
dns ×1
header ×1
python ×1