b3rkay/synth-dns

By b3rkay

Updated 6 months ago

A simple tool for merging and deduplicating DNS filters. Created By Berkay Raifov for cleaner web.

Image
Networking
0

3.6K

b3rkay/synth-dns repository overview

Note: Supports wildcard domain lists only.

Quick Start

You can run synth-dns using either Docker Run or Docker Compose.

Option 1: Docker Run (Single Command)
docker run -d \
  --name synth-dns \
  -p 8000:8000 \
  -e SYNTH_DNS_EXTERNAL_DEDUPE=1 \
  -e SYNTH_DNS_BUCKETS=128 \
  -v $(pwd)/data:/app/data \
  --restart unless-stopped \
  b3rkay/synth-dns:latest
Option 2: Docker Compose

Create a docker-compose.yml file:

services:
  synth-dns:
    image: b3rkay/synth-dns:latest
    container_name: synth-dns
    ports:
      - "8000:8000"
    environment:
      - SYNTH_DNS_EXTERNAL_DEDUPE=1  # Disk-based Deduplication
      - SYNTH_DNS_BUCKETS=128        # Disk Dedup Bucket Count
    volumes:
      - ./data:/app/data
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/8000' || exit 1"]
      interval: 15s
      timeout: 5s
      retries: 3
      start_period: 5s

Configuration (Environment Variables)

VariableDefaultDescription
SYNTH_DNS_EXTERNAL_DEDUPE1Enables disk-based deduplication instead of keeping everything in memory.
SYNTH_DNS_BUCKETS128Sets the number of buckets used for disk deduplication; more buckets mean more files/IO, fewer buckets mean less.

Tag summary

Content type

Image

Digest

sha256:b9feec26f

Size

32.2 MB

Last updated

6 months ago

docker pull b3rkay/synth-dns