
Gravity
Replicated DNS, DHCP & TFTP server with ad-blocking
927 stars 30 forks last commit first released GPL-3.0
Actively maintained
Last commit 24 Aug 2026.

Gravity is a lightweight network services suite that provides fully-replicated DNS, DHCP and TFTP functionality with built-in ad‑blocking and a web UI/API for management. It is designed for small to medium networks and multi-site deployments where replicated state and ease of migration matter.
Key Features
- Fully-replicated configuration and runtime data across cluster members (replication/backing store is used to synchronize state).
- DNS server with local caching and configurable ad/privacy blocking; can operate as a forwarder while maintaining its own records.
- DHCP server with automatic DNS registration and import capabilities for existing Microsoft DHCP leases/reservations.
- TFTP server for storing device configurations and PXE/netboot workflows.
- Web-based UI and HTTP API for management and automation.
- Metrics exposed for Prometheus; bundled dashboards/visualizations are supported for observability.
- Backup role supporting snapshot export to S3-compatible storage and local snapshots.
- Provided as container images and can be deployed with Docker Compose or container runtimes.
Use Cases
- Replace or consolidate DNS/DHCP/TFTP services for small office or branch networks with a single, replicated platform.
- Multi-site deployments that require synchronized DNS/DHCP state without external databases or complex primary/secondary setups.
- Air-gapped or regulated environments where cluster images and bundled artifacts simplify migration and offline installs.
Limitations and Considerations
- Minimum recommended resources are modest but non-trivial (examples note at least 1 CPU core and ~1 GB RAM); resource needs grow with many DNS zones or when Blocky/CoreDNS ad‑blocking is enabled.
- Official support targets AMD64 and ARM64 builds; other CPU architectures are not guaranteed.
- Performance and memory usage can increase significantly with large numbers of zones or very high query/lease volumes; plan capacity accordingly.
Gravity provides a compact, self-contained alternative for replicated network services with observability and backup integrations. It focuses on operational simplicity for multi-node and multi-site scenarios while exposing management APIs for automation.
Categories:
Tags:
Tech Stack:
Similar to Gravity

Blocky
Fast, lightweight DNS proxy and ad-blocker in Go
Open-source DNS proxy and network-wide ad-blocker for local networks. Supports DoH/DoT, per-client rules, caching, deep CNAME inspection, Prometheus metrics, Docker and Helm.

GoAway
Lightweight DNS sinkhole with a web admin dashboard
Self-hosted DNS sinkhole written in Go that blocks ads, trackers and malicious domains; provides a modern web dashboard, Docker support, DoT/DoH options and realtime stats.


Technitium DNS Server
Authoritative and recursive DNS server with web console
Cross-platform DNS server with authoritative/recursive modes, encrypted DNS (DoH/DoT/DoQ), DNSSEC, ad/malware blocking, DHCP, and an HTTP API with web admin UI.

Prometheus
Monitoring system and time-series database for metrics and alerting
Prometheus is an open-source monitoring and time-series database for collecting metrics, querying with PromQL, and alerting on system and application health.

AdGuard Home
Network-wide DNS server that blocks ads, trackers, phishing and malware
Open-source DNS-based ad & tracker blocking server for networks. Offers per-device rules, parental controls, encrypted upstream DNS (DoH/DoT/DNSCrypt), web UI and API.

AdGuardHome Sync
Synchronize AdGuard Home configuration across replica instances
Sync AdGuard Home settings, filters, rewrites, DHCP/DNS config, and clients from an origin instance to one or more replicas on a schedule or on demand.



