-
Notifications
You must be signed in to change notification settings - Fork 41
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
DSM 6.1 and ";dynamic" alternative #20
Comments
Hi @WolfspiritM I haven't looked at this part of the script in quite a while. I do remember your changes from some time ago and it worked really well for me. I'm certainly open to changes to make this better. As far as the permissions go, that part has been there since the original version by Tim Smith. I'm assuming that just to make sure that named can still read and write the files. Under DSM 5.1, named runs as "nobody" - at least for me anyway:
|
Ah okay!
While DNSServ+ is actually DNSServer. So this should be removed or done differently otherwise DSM is having troubles editing it. Reading seems to be no problem. All the other files are like that aswell:
I will take a look at it the next days :-) |
BTW, as far as the ;dynamic issue goes, your fix from a while ago has been working fine for me. It was a much more elegant solution to the problem. I wonder if the issue here is just related to the file permissions? |
Yes I'd prefer keeping the ";dynamic" solution, too. Will give it more tries soon |
Hello,
So I recently noticed that my diskstation ends up getting very slow from time to time and only a reboot fixes it. "top" as well as "ps" aren't giving any results. Just telling me the "load average" is high even so no process is using a high amount of CPU. I wasn't able to figure out what the reason is yet but once I disabled the polling on boot I haven't had any issues anymore. I also found a note somewhere that someone else had troubles with another script that was set to boot automaticly from "rc.d" caused high load for him even so it wasn't doing anything. It MIGHT have something to do with DSM 6.1 beta (and now release) so I just thought I'd mention it here.
Maybe someone else has noticed the same.
However I also noticed that a recent change (might be a bit older so not sure if it's related to 6.1 but I just noticed) in DNSServer seems to block updating zone records with comments. As I implemented the ";dynamic" workaround a while ago it was able to edit these records in the Frontend and it automaticly removed the comment marking it as static. Now it seems to break saying it can't find the record in /var/logs/message and telling me to relog into DSM.
So I thought about another way to figure out which records are static and which ones are dynamic and came up with this solution:
Instead of checking for ";dynamic" I'd check for the second column to be "86400".
This seems to be the default value for DHCP Client (maybe we can make this dynamic to really check for the value in the dhcp lease file).
Now we remove all records that match the default value while preserving all others.
That means to make a record static set its DNS TTL to 86401 and you're done.
At the same time it makes the DNSServer Frontend happy as it is all valid.
Any thoughts? Maybe better ideas? If not I'll open a merge request (there is still one open from me. So not sure if that got missed.)
As a slightly related question:
Why are the permissions of the zonefile changed to "nobody:nobody" instead of DNSServer:DNSServer?
That prevents editing it in the frontend completly.
Or is that to prevent crosswriting/reading?
The text was updated successfully, but these errors were encountered: