0.0.7 • Published 8 years ago

dns-map v0.0.7

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

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

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago