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
Force regeneration of configs and zone files #43
Comments
There's actually commented code in client/facileManager/fmDNS/functions.php that addresses this:
// foreach (scandir($server_zones_dir) as $item) { It was commented out to revisit later as there were potential problems with it. Perhaps now is a good time to revisit it. :) I might implement a new option to use with dns.php on the CLI to force a rebuild after deleting all files. You are using fmDNS correctly to achieve your desired results. When you have one zone per view (in this case your UI should show you have two zones named 'domain.tld' each associated with a different view) then the client files will build two zone files - one per view. So, you should have db.domain.tld.<zone_id>.hosts. What are the filenames of your three copies of domain.tld? Another thing to note is only the files listed in the preview will be loaded by named so having old files that aren't loaded wouldn't impact your named configuration. Feel free to email me directly (jon [at] facilemanager dot com) if you'd like me to review your issue outside of git. |
I was able to reproduce the issue where named.conf.local and named.conf.options were not being created on Debian-based systems thus causing unexpected results from named. Would you be able to manually apply the changes in d61c61b to your fM server to verify this has resolved your issue? If so, I'll ensure it gets included in the next release. |
I will give it a shot, thank you. On Wed, Nov 20, 2013 at 4:03 PM, WillyXJ notifications@github.com wrote:
|
Added an option to purge files prior to writing/updating them. This will be included in the next release. |
Thanks On Thu, Nov 21, 2013 at 12:15 PM, WillyXJ notifications@github.com wrote:
|
Looking in my /etc/bind directory, I see a bunch of (I think) conflicting files that are producing unwanted results. I think there are leftover files from previous releases of fmDNS (i.e. named.keys.conf, as opposed to the newer named.conf.keys).
I also created an Internal view (matched clients from internal network) and External view (matched any clients), and when I go into my zone directory, I see 3 different zone files for domain.tld, instead of 2. I am confused as how the views works through here.
I basically want to have some different zone file entries for domain.tld if the request comes from 192.168.1.0/24. Maybe I am doing it wrong.
The text was updated successfully, but these errors were encountered: