Skip to content
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

reloading configuration failed: file not found #14

Open
webgiftdev opened this issue Jan 13, 2022 · 9 comments
Open

reloading configuration failed: file not found #14

webgiftdev opened this issue Jan 13, 2022 · 9 comments

Comments

@webgiftdev
Copy link

Hello,
i followed the instructions and try to set NAS DNS Server as Ad-blocker however i receive the following error from logs tab.
Screenshot 2022-01-13 at 09 35 06

Thank you

@BruTTus
Copy link

BruTTus commented Jan 13, 2022

I configured my laptop's DNS and seems not working, on my logs I'm seeing something similar.
image

@csimlinger
Copy link

Same issue for my. Any ideas?

@BruTTus
Copy link

BruTTus commented Feb 10, 2022

Same issue for my. Any ideas?

You have to enable the forward request to a public DNS like 8.8.8.8 to enable it. That was my problem at least, let me know if was yours too.

@dipiana
Copy link

dipiana commented Feb 11, 2022

Thanks for the answer but unfortunately I can not make it work.

The first error I encounter after sudo ./ad-blocker.sh the script is:

rndc: 'reload' failed: file not found

Then I see multiple errors like here:

image

Any ideas how to solve that? Can't find any solution online.

Thanks!

@robotictacos
Copy link

Down in line 189 he's left off an argument the reload script needs to work. You need to change this:

"${RootDir}"/script/reload.sh

To this:

"${RootDir}"/script/reload.sh null.zone.file

Save it and re-run it.

@robotictacos
Copy link

Ah, well, that only fixes one issue, this script is riddled with problems. I fixed some, will have to come back to it though.

@raphaeldas
Copy link

Check out the pull request #16. there are some changes to the shell script i had to apply to make it work for me.

@Aladiah2
Copy link

Hello, in DSM 7.2 the reload script is not exist. I comment the line out and do a reload with the help of the /etc/crontab 2 minutes later:
systemctl reload pkg-DNSServer

@Aladiah2
Copy link

Also the path of the zone files changed!
After this changes in the script the service is working again (quick hack):

include "/etc/zone/data/ad-blocker.db";
-->
include "/var/packages/DNSServer/target/named/etc/zone/data/ad-blocker.db";

wget -O- "$BlocklistURL" |
sed -e 's/null.zone.file//etc/zone/master/null.zone.file/g' > "/tmp/ad-blocker.new"
-->
wget -O- "$BlocklistURL" |
sed -e 's/null.zone.file/null.zone.file/g' > "/tmp/ad-blocker.new"

The first fix should better use the var $ZoneMasterDir.
The second fix don't need the absolute path and the sed command could be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants