Gravity

Gravity

Replicated DNS, DHCP & TFTP server with ad-blocking

889stars
25forks
Last commit: 1d ago
Repo age: 4y old
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 Services

Pi-hole

Pi-hole

Network-wide DNS sinkhole for ad and tracker blocking

55.3k
3k
Last commit: 1mo ago

Pi-hole is a network-wide DNS sinkhole that blocks ads and trackers for all devices on your network, with a web dashboard, query logs, and optional DHCP server.

Alternative to:
AdGuard
AdGuard
+7
AdGuard Home

AdGuard Home

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

32.1k
2.2k
Last commit: 1d ago

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.

Alternative to:
AdGuard
AdGuard
+5
MyIP (IPCheck.ing)

MyIP (IPCheck.ing)

Open-source IP toolbox for IP, DNS, WebRTC and network diagnostics

9.6k
1.1k
Last commit: 12d ago

MyIP (IPCheck.ing) is an open-source web IP toolbox that detects local/public IPs, runs DNS leak and WebRTC checks, speed/latency/MTR tests, availability and whois lookup...

Alternative to:
WhatIsMyIPAddress.com
WhatIsMyIPAddress.com
+10
Technitium DNS Server

Technitium DNS Server

Authoritative and recursive DNS server with web console

7.3k
616
Last commit: 28d ago

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.

Alternative to:
Cloudflare DNS
Cloudflare DNS
+10
Blocky

Blocky

Fast, lightweight DNS proxy and ad-blocker in Go

5.9k
257
Last commit: 1d ago

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 H...

Alternative to:
NextDNS
NextDNS
+7
Unbound

Unbound

Validating, recursive, caching DNS resolver

4.2k
421
Last commit: 2d ago

Standards-based validating recursive DNS resolver with DNSSEC validation, DNS-over-TLS/HTTPS support and configurable caching for privacy and performance.

Alternative to:
Cloudflare DNS
Cloudflare DNS
+9