gloryhole

Community

Run a secure, policy-driven DNS server.

Authorerfianugrah
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It provides fast, controllable DNS resolution with ad-blocking and fine-grained policy, without relying on untrusted upstreams for recursive behavior.

Core Features & Use Cases

  • Policy-driven DNS handling: Uses an expr-based engine to decide BLOCK / ALLOW / REDIRECT / FORWARD actions, including domain and IP/CIDR matchers.
  • Local authoritative records + CNAME resolution: Serves authoritative records and resolves CNAME chains locally for your internal hostnames.
  • Pi-hole-style blocklists with safe updates: Downloads blocklists, applies them via lock-free atomic swaps, and overrides TTL behavior for blocked answers.
  • Conditional forwarding with resilient round-robin: Evaluates priority-sorted conditional forwarding rules and forwards to upstreams using a round-robin strategy with circuit breaking and upstream health tracking.
  • Embedded Unbound recursion topology: Bundles Unbound recursor in the same runtime (supervised child on loopback) to provide DNSSEC-validated recursion for DoT/DoH use cases.
  • Built-in observability and audit trail: Exposes Prometheus metrics, uses OpenTelemetry meter patterns, and logs queries into SQLite asynchronously.

Quick Start

Configure your forwarder/policy/blocklist rules in ~/gloryhole/AGENTS.md, then run the glory-hole binary deployed under ~/gloryhole/ for your chosen home or public DoT/DoH profile.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gloryhole
Download link: https://github.com/erfianugrah/dotfiles/archive/main.zip#gloryhole

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.