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

Unbound: Root Hints automatic update? #4077

Closed
APraxx opened this issue Feb 2, 2021 · 5 comments
Closed

Unbound: Root Hints automatic update? #4077

APraxx opened this issue Feb 2, 2021 · 5 comments
Labels
Milestone

Comments

@APraxx
Copy link

APraxx commented Feb 2, 2021

Hi,

I'm using dietpi and it is great. Thx

I just noticed that in the unbound package there is no automatic update of root hints file.
They don't change often but they do.

Can we add a systemd timer like
https://wiki.archlinux.org/index.php/Unbound#Roothints_systemd_timer
or is it on purpose?

@Joulinar
Copy link
Collaborator

Joulinar commented Feb 2, 2021

Hi,

many thanks for your question. The feature was already on the agenda but it is not yet done. For the time being, you could use following to set it up

echo -e '#!/bin/dash\ncurl -sSfL https://www.internic.net/domain/named.root -o /var/lib/unbound/root.hints' > /etc/cron.monthly/dietpi-unbound
chmod +x /etc/cron.monthly/dietpi-unbound

@APraxx
Copy link
Author

APraxx commented Feb 2, 2021

I could make a PR.

Which way would you like it implemented?
Like your example with cron or with a systemd timer?

@Joulinar
Copy link
Collaborator

Joulinar commented Feb 2, 2021

let's wait on the developer @MichaIng

@MichaIng MichaIng added this to the v6.35 milestone Feb 2, 2021
@MichaIng
Copy link
Owner

MichaIng commented Feb 2, 2021

Yes definitely, thanks for the reminder. I'd go with the cron job, which is slightly simpler to implement and understand for most users.

Cron is still required for at least two important core system tasks, so that we cannot yet think about migrating to systemd timers completely, which I would consider when DietPi scripts are the only ones on a fresh system that require the cron daemon to remain 😉.

@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label Feb 7, 2021
@MichaIng
Copy link
Owner

MichaIng commented Feb 7, 2021

Done: 690b01b
Changelog: 98b5be8

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

No branches or pull requests

3 participants