Gravity logo

Gravity

Website

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 screenshot

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:

Share:

Similar to Gravity

Blocky logo

Blocky

Fast, lightweight DNS proxy and ad-blocker in Go

6.9k
298
Last commit

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.

Apache-2.0Actively maintained
Alternative to:
NextDNS logo
NextDNS
+7
GoAway logo

GoAway

Lightweight DNS sinkhole with a web admin dashboard

732
35
Last commit

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.

MITActively maintained
Alternative to:
AdGuard logo
AdGuard
+5
Technitium DNS Server logo

Technitium DNS Server

Authoritative and recursive DNS server with web console

9.7k
773
Last commit

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.

GPL-3.0Actively maintained
Alternative to:
Cloudflare DNS logo
Cloudflare DNS
+10
Prometheus logo

Prometheus

Monitoring system and time-series database for metrics and alerting

65.8k
10.8k
Last commit

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

Apache-2.0Actively maintained
Alternative to:
Datadog Cloud Monitoring logo
Datadog Cloud Monitoring
+17
AdGuard Home logo

AdGuard Home

Network-wide DNS server that blocks ads, trackers, phishing and malware

36.4k
2.5k
Last commit

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.

GPL-3.0Actively maintained
Alternative to:
AdGuard logo
AdGuard
+5

AdGuardHome Sync

Synchronize AdGuard Home configuration across replica instances

1.8k
51
Last commit

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.

Apache-2.0Actively maintained