0.0.3 • Published 8 years ago

host-resolver-client v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

host-resolver-client

用于生成 hosts 文件,分为客户端和服务端。服务端地址 host-resolver-server

安装

npm install -g host-resolver-client

使用, 需要管理员或者 sudo :

resolve-hosts
-c, --config [config]        Config file path. Default is ~[/host-resolver-config.json]
-H, --hostsfile [hostsfile]  Output hosts file. On Windows, default is [%SYSTEMROOT%\system32\drivers\etc\hosts]. On *nix and OS X, default is [/etc/hosts]

范例 config.json

{
    "hostsfile": "C:\\Windows\\System32\\drivers\\etc\\hosts",
    "server_host": "",
    "server_port": "",
    "server_auth_token": "",
    "host_templates": [
        "hosts.template"
    ],
    "host_list": [
    ]
}
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago