Does custom.list get pulled into gravity.db?

I'm updating pihole-cloudsync to work with synching gravity.db from the primary host to secondaries. In testing, I've noted that the Custom DNS settings don't get synched. Are they not included when gravity.db is built? Is custom.list file the only additional file I need to sync?

Testing answered it for me. The answer is yes.
Was there a reason it wasn't included in gravity.db?

1 Like

Ah, when the custom.list feature was proposed, it was decided that it a file would be sufficient for this.

See the original PR for discussion: Add commands to add/remove custom DNS records by Mograine · Pull Request #2978 · pi-hole/pi-hole · GitHub

@DL6ER may have updated thoughts, however....

No update on this. The idea is (and was) to have all sources of DNS knowledge in "traditional" dnsmasq-compatible sources. The gravity database contains only domains, but never associations name <-> record. I don't see any need for moving this into the database, also because implementing this generic enough for supporting all the various DNS query tyes existing, would be a significant amount of work (and code that needs to be tested and maintained).