mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-09 21:39:19 +00:00
global-functions: $IsDNSResolving: check with eworm.de and eworm.net
This should prevent against DENIC outages... https://blog.denic.de/en/denic-reports-resolved-dnssec-disruption-affecting-de-domains/
This commit is contained in:
parent
cd4052ba6b
commit
811df5abf2
1 changed files with 9 additions and 4 deletions
|
|
@ -813,10 +813,15 @@
|
|||
:set IsDNSResolving do={
|
||||
:do {
|
||||
:resolve "low-ttl.eworm.de";
|
||||
} on-error={
|
||||
:return false;
|
||||
}
|
||||
:return true;
|
||||
:return true;
|
||||
} on-error={ }
|
||||
|
||||
:do {
|
||||
:resolve "low-ttl.eworm.net";
|
||||
:return true;
|
||||
} on-error={ }
|
||||
|
||||
:return false;
|
||||
}
|
||||
|
||||
# check if system is is fully connected (default route reachable, DNS resolving, time sync)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue