RepositoryShell
VM

vmstan/gravity-sync

💫 The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances.

2.3kstars
130forks
0issues
2views

Gravity Sync

Gravity Sync

Effective July 26, 2024, this project has been retired. Thank you for your use and enthusiasm for a project that began as a few lines of bash in a Slack channel and envolved into something far more complex, and used by many thousands of Pi-hole enthusiasts over the last four years.

The last released version of Gravity Sync (4.0.7) should continue to work with Pi-hole 5.x, but not with Pi-hole 6+ due to architecture changes.

What is better than a Pi-hole blocking trackers, advertisements, and other malicious domains on your network? That's right, two Pi-hole blocking all that junk on your network!

But if you have redundant Pi-hole in your network you'll want a simple way to keep the list configurations and local DNS settings identical between the two. That's where Gravity Sync comes in. Setup should only take a few minutes.

Features

Gravity Sync replicates the core of Pi-hole's ad/telemetry blocking settings, which includes:

  • Adlist settings with status and comments.
  • Domain/RegEx whitelists and blacklist along with status and comments.
  • Clients and group assignments, along with status and descriptions.

Gravity Sync also replicates local network DNS/DHCP settings, which includes:

  • Local DNS Records.
  • Local CNAME Records.
  • Static DHCP Assignments.

Limitations

Gravity Sync will not:

  • Modify or sync the individual Pi-hole's upstream DNS resolvers.
  • Merge query logs, statistics, long-term data, caches, or other resolution information.
  • Sync individual Pi-hole DHCP scoping information or leases.

Setup Steps

  1. Review System Requirements
  2. Install Gravity Sync
  3. Configure Gravity Sync
  4. Execute Gravity Sync
  5. Automate Gravity Sync

Disclaimer

Gravity Sync is not developed by or affiliated with the Pi-hole project. This is project an unofficial, community effort, that seeks to implement replication (which is currently not a part of the core Pi-hole product) in a way that provides stability and value to Pi-hole users. The code has been tested across multiple user environments but there always is an element of risk involved with running any arbitrary software you find on the Internet.

Pi-hole is and the Pi-hole logo are registered trademarks of Pi-hole LLC.

Additional Documentation

Please refer to the Wiki for more information:

Similar Projects

Discover other similar projects and AI models.

RepositoryShell
pi-hole/pi-hole

A black hole for Internet advertisements

62.3k
Nov 29, 2026
RepositoryShell
pi-hole/docker-pi-hole

The official Pi-hole Docker image from pi-hole.net

11.8k
Nov 28, 2026
RepositoryPython
anudeepND/whitelist

A simple tool to add commonly white listed domains to your Pi-Hole setup. THIS REPO IS ARCHIVED, DO NOT USE SCRIPT TO SDD THE DOMAINS, IT IS NOT TESTED

4.4k
Mar 19, 2024
RepositoryC++
M-Abozaid/esp32-c3-adblock

Pi-hole-class DNS ad-blocker on a $2 ESP32-C3 (no PSRAM): 537k domains as 40-bit FNV-1a hashes in flash, binary-searched. UDP DNS sinkhole + web dashboard. https://youtube.com/shorts/RaxszOUMi8E?feature=share

3.7k
Nov 6, 2026
RepositoryGo
lovelaze/nebula-sync

Synchronize configuration of multiple Pi-hole v6.x instances.

1.7k
Nov 14, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

210.0k
Aug 12, 2026
RepositoryPython
home-assistant/core

:house_with_garden: Open source home automation that puts local control and privacy first.

92.6k
Nov 27, 2026
RepositoryC
raysan5/raylib

A simple and easy-to-use library to enjoy videogames programming

35.9k
Dec 3, 2026
RepositoryShell
thibmaek/awesome-raspberry-pi

📝 A curated list of awesome Raspberry Pi tools, projects, images and resources

17.2k
Nov 11, 2026