Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m0zgen/root-hint-dwn
⚙️ This script is download DNS root hint file from internic.net
https://github.com/m0zgen/root-hint-dwn
Last synced: 1 day ago
JSON representation
⚙️ This script is download DNS root hint file from internic.net
- Host: GitHub
- URL: https://github.com/m0zgen/root-hint-dwn
- Owner: m0zgen
- Created: 2023-09-11T08:51:36.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-05T06:59:12.000Z (about 1 year ago)
- Last Synced: 2023-11-06T07:22:49.077Z (about 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Root Hint File for DNS Download
This is a root hint file for DNS download. It is generated from the IANA root zone database.
Root files information you can find on [IANA website](https://www.iana.org/domains/root/files).
Downloaded file is located in `root.hints` file in `downloads` directory.
* URL: https://www.internic.net/domain/named.cache
# Features
Before download file, script comparing local and remote file sizes, if sizes differents, file will download and then will run defined command.
## Cron job for download
```bash
0 4 1 * * /path/to/root-hint-dwn/run.sh -c "telegram_notify" -t "/path/to/dest/root.hints" > /dev/null 2>&1
```Or for `cron.d`:
```bash
30 1 1,15 * * root /path/to/update_root_hints.sh '/usr/bin/systemctl restart service' 2>&1
```Enjoy.