nein

Wildcard DNS & HTTP server. http://foo.nein/bar -> ~/foo/bar

npm install nein
8 downloads in the last month

nein

Wildcard DNS & HTTP server. http://foo.nein/bar -> ~/foo/bar

Usage

$ sudo nein
Nein DNS running on 127.0.0.1:53, HTTP running on http://127.0.0.1:80

$ nein --dnsAddress 0.0.0.0 --dnsPort 5353
Nein DNS running on 0.0.0.0:5353, HTTP running on http://127.0.0.1:80

$ nein -h
Options:
  --dnsAddress   [default: "127.0.0.1"]
  --dnsPort      [default: 53]
  --resolveTo    [default: "127.0.0.1"]
  --firstLabel   [default: true]
  --zone         [default: "nein"]
  --server       [default: "ns.nein"]
  --admin        [default: "nein@danke.despair"]
  --serial       [default: "now"]
  --refresh      [default: "2h"]
  --retry        [default: "30m"]
  --expire       [default: "2w"]
  --ttl          [default: "10m"]
  --httpAddress  [default: "127.0.0.1"]
  --httpPort     [default: 80]
  --root         [default: "/Users/stephan/Code/nein/bin"]
  --showDir      [default: true]
  --autoIndex    [default: true]
npm loves you