mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-19 09:52:33 +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={
|
:set IsDNSResolving do={
|
||||||
:do {
|
:do {
|
||||||
:resolve "low-ttl.eworm.de";
|
:resolve "low-ttl.eworm.de";
|
||||||
} on-error={
|
:return true;
|
||||||
:return false;
|
} on-error={ }
|
||||||
}
|
|
||||||
:return true;
|
: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)
|
# 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