linuxShortcuts/Services/testDNS.service
Bruno Fontes 6c66d88068 Adding script to check DNS on laptop
Laptop battery is not working, so when the clock is wrong, my DNS
server does not works (because of DNSSEC) and it makes the clock to not
be able to update properly.

So this script changes the DNS to Quad9 and forces update the clock time
before changing it back to my DNS server.
2019-06-14 02:35:57 -03:00

12 lines
250 B
Desktop File

[Unit]
Description=Test and fix DNS update with wrong time
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart = /bin/bash /home/bruno/Apps/linuxShortcuts/Services/fixDNS.sh
[Install]
WantedBy=multi-user.target