Skip to content

crysehillmes/host-resolver-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": [
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published