我怎样才能让/etc/hosts文件引用另一个配置文件的主机列表?
示例/etc/hosts:
## My Hosts
127.0.0.1 localhost
255.255.255.255 broadcasthost
#Other Configurations
<Link to /myPath/to/MyConfig/ConfigFile.txt>
#Other Addresses
3.3.3.3 MyAwesomeDomain.com
4.4.4.4 SomeplaceIWantToGoTo.com
Run Code Online (Sandbox Code Playgroud)
配置文件.txt
##My additional Hosts
1.1.1.1 SomeLocation.com
2.2.2.2 AnotherLocation.com
Run Code Online (Sandbox Code Playgroud)
如何向/etc/hosts文件添加链接/参考以便加载 ConfigFile.txt?
有没有办法通过命令行扫描网络上的计算机并在不了解它们的情况下获取它们的 IP、MAC 和 DNS 名称?