-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local DNS records are synced when they shouldn't be #80
Comments
Has this changed for you in a recent version? If you run with v.1.3.0 do you have the same issue? |
In addition to @cbundy's comment, if you could add The server's response from the upload should get logged when verbose mode is enabled. |
I copied and pasted from the homepage so I was apparently running version 1. Nevertheless, there seems to be no difference between versions. See below. Just to be sure, I've been running two instances/containers of this image, since I want to sync my primary pi-hole completely to a second pihole, and then without to DNS-records to another pihole. Maybe things (like the backup.zip) are getting mixed up on the host file-system? I suppose this shouldn't happen, but just to make sure.
Output for 1.3.0
Output for 1.4.0.
|
I've been experimenting a bit more, and it seems that also Environment variables like SYNC_LOCALCNAMERECORDS, SYNC_WHITELIST, are not getting picked up on. Which is interesting because UPDATE_GRAVITY: 'false', is getting handled accordingly. No differences between versions 1.3.0 and 1.4.0. |
So sorry for the delay on this! I'm in the process of moving and so I've not had time to look into this further. Orbital just tries to emulate the form inputs on the "restore" section of the teleporter - it's possible these have either changed or I just didn't set them up correctly in the first place. My default troubleshooting step would be to manually run a backup and then try unchecking the things you don't want synced. If it works by hand, it's definitely an issue with Orbital's handling of the checkboxes and I can fix (or PRs welcome!) |
Forgive me if this doesn't make any sense, I'm a bit guessing on how this should work. In my understanding, interpreting @cbundy response:
It may be the case that pihole does not even check the contents of the localdnsrecords variable, but simple checks whether the variable is present. So, to solve the issue, the generateForm() function should be modified as to only add the variables that are not disabled through the environment-variables passed on from docker-compose. In pseudo-code (I only know PHP a bit) something like this?
|
Yep, I think you're spot on. I will give it a test this weekend and can put a PR together if you can't. If you want to have a crack, there is a dev container so you can just start coding if you have docker installed, or you can code in the cloud as well without needing anything installed, just click this button above the code! |
I actually managed to use this cloud coding and created a pull request. Not sure if I should have done that, as I'm not able to use the variable name for the config.Syncoptions, it creates an "Identifier expected" error. In PHP using variables as variable names is relatively easy, in JS I've read that adding brackets should yield the same effect, but no luck so far.
See also 684386c |
Thanks so much @cbundy and @MJVerhulst for looking in to this while I've been away! I really, really appreciate it. I saw you opened a PR @MJVerhulst but it didn't look like I had write access to the branch to update the tests. I've pushed up a similar PR that omits the form fields (rather than setting them to false), and I've pushed up a prerelease image:
@MJVerhulst if you have the opportunity to test, that would be amazing! |
Thanks @cbundy for your feedback on my JS "code" that you posted on the pull-request, very helpful :). I did some testing and I think it's now working as expected :). Thanks for the new version @mattwebbio! Fiddled around a bit, output/config below. Apologies for the messed up/double time-stamps, dozzle does that appearently, Check 1
Output
Check 2
Output
|
Wonderful! Thanks so much, @MJVerhulst and @cbundy :) I've released this change with |
What happened?
I'm syncing two piholes (two docker containers), but do not want them to sync local DNS records, because of the different networks they operate in.
However, the SYNC_LOCALDNSRECORDS is being ignored. I've tried using
SYNC_LOCALDNSRECORDS: 'false' and SYNC_LOCALDNSRECORDS: 0, to no avail.
This is my config:
Version
latest
Log output
The text was updated successfully, but these errors were encountered: