Sign inSign up

marlic/rpi-njs-dns-proxy

By marlic

•Updated almost 9 years ago

Simple DNS Proxy written in Node.JS for Raspberry Pi

Image
1

1.2K

marlic/rpi-njs-dns-proxy repository overview

Git repo URL: https://github.com/marlic7/dns-proxy2⁠

⁠Install on Raspberry Pi

⁠prerequsites

  1. install docker-engine
  2. install docker-compose

⁠create conf files and run container with dns-proxy2

make somewhere directory for deployment config:

mkdir dns-proxy
cd dns-proxy

create config for dns-proxy:

vim conf.json

{
  "port": 8053,
  "host": "127.0.0.1",
  "logging": "dnsproxy:query,dnsproxy:info",
  "nameservers": [
    "8.8.8.8",
    "8.8.4.4",
    "8.8.8.8"
  ],
  "servers": {},
  "domains": {
    "dev": "127.0.0.1"
  },
  "hosts": {
    "devlocal": "127.0.0.1"
  },
  "fallback_timeout": 350,
  "reload_config": true,
  "maxTtl": 172800,
  "minTtl": 300,
  "nxdomainTtl": 600
}

create docker-compose.yml file

vim docker-compose.yml

version: "2"
services:
  njs-dns-proxy:
    image: "marlic/rpi-njs-dns-proxy:1.0.3"
    ports:
      - 53:8053
    volumes:
      - ./conf.json:/home/node/conf.json
    restart: always
  # environment:
  #   - DEBUG=dnsproxy:debug,dnsproxy:query,dnsproxy:info

run container in background:

docker-compose up -d

Tag summary

Content type

Image

Digest

Size

16.3 MB

Last updated

almost 9 years ago

docker pull marlic/rpi-njs-dns-proxy