是否可以直接为可执行文件设置域名映射?就像我们编辑 /etc/hosts/ 然后运行可执行文件一样。
例子:
$ ping google.com
PING google.com (74.125.232.48) 56(84) bytes of data.
$ magic-command -m google.com=127.0.0.1 ping google.com
PING google.com (127.0.0.1) 56(84) bytes of data.
Run Code Online (Sandbox Code Playgroud)