dns-map

0.0.7 • Public • Published

dns-map

dns-map是一个包装过的dns服务器,通过设置proxy可以将特定请求映射到远程服务器,以便可以方便的进行线上调试

Install

npm install dns-map -g

Usage

[sudo] dns-map --config ./config.json

注:dns要使用53端口,需要权限才可开启

Example

config.json

{
    "records": [
        {
            "name": "static",
            "domain": "xxx.com",
            "proxy": {
                "port": 80,
                "map": {
                    "/a": "http://static.example.com/a"
                }
            },
            "A": []
        },
        {
            "name": "wap",
            "domain": "xxx.com",
            "A": []
        }
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i dns-map

Weekly Downloads

1

Version

0.0.7

License

ISC

Last publish

Collaborators

  • quyatong