doku:server:infra1.shackspace.de
infra1.shackspace.de
Funktion
- ssh proxy
- dnsmasq - local DNS resolver f. host1.shackspace.de
2023-01-27
- anwesend: chris
- watchdog m. restart f. dnsmasq eingerichtet
- added /etc/cron.d/watch-dnsmasq
- added /root/bin/watch-dnsmasq
- /etc/cron.d/watch-dnsmasq
# watch and restart dnsmasq # Fri 27 Jan 2023 04:13:12 PM CET, chris * * * * * root /root/bin/watch-dnsmasq
- /root/bin/watch-dnsmasq
#!/bin/bash # Test #X=$( ( echo REFUSED >&1 ) ; dig +short github.com ; dig +short shackspace.de ; dig +short citecs.de 2>&1 ) X=$( dig +short github.com ; dig +short shackspace.de ; dig +short citecs.de 2>&1 ) if grep -q REFUSED <<< "$X" ; then echo "DNS resolving failed on infra1.shackspace.de" echo "restarting dnsmasq..." systemctl status dnsmasq systemctl restart dnsmasq systemctl status dnsmasq fi
doku/server/infra1.shackspace.de.txt · Zuletzt geändert: 2023-01-27 20:38 von chris