From 4289b3dc1ef87586e10a28387b40ec30c21ba9e0 Mon Sep 17 00:00:00 2001 From: MacRat Date: Mon, 29 Dec 2025 16:43:09 +0900 Subject: [PATCH] test(scheme/dns): follow change of example.com hosting service --- internal/scheme/dns_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/scheme/dns_test.go b/internal/scheme/dns_test.go index 7d629b8..3ab6e9d 100644 --- a/internal/scheme/dns_test.go +++ b/internal/scheme/dns_test.go @@ -28,8 +28,8 @@ func TestDNSScheme_Probe(t *testing.T) { {"dns:google.com?type=MX", api.StatusHealthy, succeed + `mx: \["[a-z0-9.]+"(,"[a-z0-9.]+")*\]`, ""}, {"dns://8.8.8.8:53/google.com?type=MX", api.StatusHealthy, succeed + `mx: \["[a-z0-9.]+"(,"[a-z0-9.]+")*\]`, ""}, - {"dns:example.com?type=NS", api.StatusHealthy, succeed + `ns: \["[a-z]\.iana-servers\.net\."(,"[a-z]\.iana-servers\.net\.")*\]`, ""}, - {"dns://8.8.4.4/example.com?type=NS", api.StatusHealthy, succeed + `ns: \["[a-z]\.iana-servers\.net\."(,"[a-z]\.iana-servers\.net\.")*\]`, ""}, + {"dns:example.com?type=NS", api.StatusHealthy, succeed + `ns: \["(elliott|hera)\.ns\.cloudflare\.com\.","(elliott|hera)\.ns\.cloudflare\.com\."\]`, ""}, + {"dns://8.8.4.4/example.com?type=NS", api.StatusHealthy, succeed + `ns: \["(elliott|hera)\.ns\.cloudflare\.com\.","(elliott|hera)\.ns\.cloudflare\.com\."\]`, ""}, {"dns:example.com?type=TXT", api.StatusHealthy, succeed + `txt: \[("v=spf1 -all","[_0-9a-z]{32}"|"[_0-9a-z]{32}","v=spf1 -all")\]`, ""}, {"dns://1.1.1.1/example.com?type=TXT", api.StatusHealthy, succeed + `txt: \[("v=spf1 -all","[_0-9a-z]{32}"|"[_0-9a-z]{32}","v=spf1 -all")\]`, ""},