Back to rankings

vmstan/gravity-sync

Shellvmstan.com/gravity-sync/

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

pi-holeraspberry-pidnsreplication
Star Growth
Stars
2.3k
Forks
132
Weekly Growth
Issues
0
1k2k
May 2020May 2022Jun 2024Jul 2026
README

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:

Related repositories
pi-hole/pi-hole

A black hole for Internet advertisements

ShellOtherpi-holead-blocker
pi-hole.net
60k3.3k
hagezi/dns-blocklists

DNS-Blocklists: For a better internet - keep the internet clean!

TextGNU General Public License v3.0dnsads
24.6k753
pi-hole/docker-pi-hole

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

ShellOtherpi-holedocker-container
pi-hole.net
11.4k1.2k
privacy-protection-tools/anti-AD

致力于成为中文区命中率最高的广告过滤列表,实现精确的广告屏蔽和隐私保护。anti-AD 现已支持 AdGuardHome,dnsmasq,Surge,Pi-Hole,Clash, mihomo,smartdns,sing-box 等网络组件。完全兼容常见的广告过滤工具所支持的各种广告过滤列表格式

MIT Licensednsmasqeasylist
anti-ad.net
10.6k788
IAmStoxe/wirehole

WireHole is a combination of WireGuard, Pi-hole, and Unbound in a docker-compose project with the intent of enabling users to quickly and easily create a personally managed full or split-tunnel WireGuard VPN with ad blocking capabilities thanks to Pi-hole, and DNS caching, additional privacy options, and upstream providers via Unbound.

piholewireguard
iamstoxe.com
5k344
anudeepND/whitelist

A simple tool to add commonly white listed domains to your Pi-Hole setup.

PythonPyPIMIT Licensepi-holead-blocker
4.4k288
jokob-sk/NetAlertX

Network intruder and presence detector. Scans for devices connected to your network and alerts you if new and unknown devices are found.

JavaScriptnpmGNU General Public License v3.0dockernetwork-security
netalertx.com
3.7k223
yokoffing/NextDNS-Config

Setup guide for NextDNS, a DoH proxy with advanced capabilities

GNU General Public License v3.0dnssecurity
3.1k75
pucherot/Pi.Alert

WIFI / LAN intruder detector. Check the devices connected and alert you with unknown devices. It also warns of the disconnection of "always connected" devices

JavaScriptnpmGNU General Public License v3.0wifilan
2.7k173
kboghdady/youTube_ads_4_pi-hole

YouTube script to add the new Ads list for Pi-hole

Shellpiholepihole-blocklists
2.6k251
pi-hole/web

Pi-hole Dashboard for stats and more

JavaScriptnpmOtherpi-holedashboard
pi-hole.net
2.5k642
badmojr/1Hosts

Advanced DNS filter/blocklists for privacy, security, and clean browsing.

HTMLMozilla Public License 2.0adblockblocklist
badmojr.github.io/1Hosts/
2.2k122