Compare commits

..

3 Commits

Author SHA1 Message Date
Andrey Petelin
a7b6c36dfb chore: set dns_server to 77.88.8.8 2026-01-29 12:03:25 +05:00
Kirill Sobakin
f39e2d9ca9 Merge pull request #307 from itdoginfo/fix/dns-check
fix: use nslookup_attempts for DNS check loop
2026-01-28 10:49:34 +03:00
Andrey Petelin
00594f23fd fix: use nslookup_attempts for DNS check loop instead of nslookup_timeout 2026-01-28 12:45:35 +05:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
config settings 'settings'
option dns_type 'udp'
option dns_server '8.8.8.8'
option dns_server '77.88.8.8'
option bootstrap_dns_server '77.88.8.8'
option dns_rewrite_ttl '60'
list source_network_interfaces 'br-lan'

View File

@@ -490,7 +490,7 @@ list_update() {
local i
# DNS Check
for i in $(seq 1 $nslookup_timeout); do
for i in $(seq 1 $nslookup_attempts); do
if nslookup -timeout=$nslookup_timeout openwrt.org > /dev/null 2>&1; then
echolog "✅ DNS check passed"
break