From 626faf6ce28a7bb49c1ce237c43b37c67c3e26c7 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sun, 24 Nov 2019 01:07:41 -0300 Subject: [PATCH] Including roothints update service for Unbound --- Services/roothints.service | 6 ++++++ Services/roothints.timer | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 Services/roothints.service create mode 100644 Services/roothints.timer diff --git a/Services/roothints.service b/Services/roothints.service new file mode 100644 index 0000000..c6d87af --- /dev/null +++ b/Services/roothints.service @@ -0,0 +1,6 @@ +[Unit] +Description=Update root hints for unbound +After=network.target + +[Service] +ExecStart=/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache diff --git a/Services/roothints.timer b/Services/roothints.timer new file mode 100644 index 0000000..7a4c88c --- /dev/null +++ b/Services/roothints.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run root.hints monthly + +[Timer] +OnCalendar=monthly +Persistent=true + +[Install] +WantedBy=timers.target