doku:server:infra1.shackspace.de
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
doku:server:infra1.shackspace.de [2023-01-27 16:20] – angelegt chris | doku:server:infra1.shackspace.de [2023-11-12 19:13] (aktuell) – chris | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
* ssh proxy | * ssh proxy | ||
* dnsmasq - local DNS resolver f. [[doku/ | * dnsmasq - local DNS resolver f. [[doku/ | ||
- | | + | |
**2023-01-27** | **2023-01-27** | ||
* anwesend: chris | * anwesend: chris | ||
Zeile 12: | Zeile 12: | ||
* added / | * added / | ||
+ | **2023-11-12** | ||
+ | * anwesend: chris | ||
+ | * watchdog m. restart f. dnsmasq erweitert | ||
+ | | ||
+ | <file txt / | ||
+ | # watch and restart dnsmasq | ||
+ | # Fri 27 Jan 2023 04:13:12 PM CET, chris | ||
+ | * * * * * root / | ||
+ | </ | ||
+ | <file txt / | ||
+ | #!/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 <<< | ||
+ | echo "DNS resolving failed on infra1.shackspace.de (found ' | ||
+ | echo " | ||
+ | systemctl status dnsmasq | ||
+ | systemctl restart dnsmasq | ||
+ | systemctl status dnsmasq | ||
+ | else if [ " | ||
+ | echo "DNS resolving failed on infra1.shackspace.de (got empty answer)" | ||
+ | echo " | ||
+ | systemctl status dnsmasq | ||
+ | systemctl restart dnsmasq | ||
+ | systemctl status dnsmasq | ||
+ | fi fi | ||
+ | </ | ||
doku/server/infra1.shackspace.de.1674832800.txt.gz · Zuletzt geändert: 2023-01-27 16:20 von chris