├── README.md ├── get-root-hints.service └── get-root-hints.timer /README.md: -------------------------------------------------------------------------------- 1 | # unbound-get-root-hints 2 | 3 | simple systemd timer to periodically update root.hints for unbound recursive resolver 4 | 5 | ## Usage 6 | 7 | * Download the service files: 8 | ``` 9 | cd /etc/systemd/system/ 10 | sudo wget https://raw.githubusercontent.com/saint-lascivious/unbound-get-root-hints/master/get-root-hints.service 11 | sudo wget https://raw.githubusercontent.com/saint-lascivious/unbound-get-root-hints/master/get-root-hints.timer 12 | ``` 13 | 14 | * Enable and start the service 15 | ``` 16 | sudo systemctl enable get-root-hints.timer 17 | sudo systemctl start get-root-hints.timer 18 | ``` 19 | 20 | ## Contact 21 | * Discord 22 | [SaintLascivious](https://discord.gg/NC7taVyn) 23 | 24 | * Email 25 | saint@sainternet.xyz 26 | 27 | * IRC 28 | [##saint-lascivious](https://webchat.freenode.net/##saint-lascivious) 29 | 30 | * Reddit 31 | [saint-lascivious](https://www.reddit.com/user/saint-lascivious) 32 | 33 | ![alt text][logo] 34 | 35 | [logo]:https://vignette.wikia.nocookie.net/pokemon/images/7/76/265Wurmple.png "Using the spikes on its rear end, Wurmple peels the bark off trees and feeds on the sap that oozes out. This Pokémon's feet are tipped with suction pads that allow it to cling to glass without slipping." 36 | -------------------------------------------------------------------------------- /get-root-hints.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Download root.hints for Unbound DNS validating resolver 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/usr/bin/curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.root -------------------------------------------------------------------------------- /get-root-hints.timer: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Freshen root.hints for Unbound DNS validating resolver at boot and on a weekly timer 3 | 4 | [Timer] 5 | OnBootSec=10min 6 | OnCalendar=monthly 7 | 8 | [Install] 9 | WantedBy=timers.target 10 | --------------------------------------------------------------------------------