我需要创建一个脚本来自动执行这个手动输入的过程:
nslookup
> server ns1.server.com
> ls example.com我需要将ls的所有输出保存在txt或csv中。
事实是,我找不到任何方法来自动化这三个步骤在一个。我试过powershell上的所有东西,bash ..。什么都没有。我无法使用python或其他语言进行测试,因为服务器无法访问互联网来下载相应的库。
我想用这个表单nslookup ls example.com ns1.server.com> example.txt做点什么
但是没有办法,请帮帮我。
诚挚的问候
发布于 2019-06-26 17:01:42
Resolve-DnsName example.com -Server ns1.server.com -Type ALL | Out-File -FilePath example.txthttps://stackoverflow.com/questions/56767411
复制相似问题