业务域名CNAME检查DNS主机地址增加Google公共DNS

This commit is contained in:
刘祥超
2023-12-06 09:42:15 +08:00
parent b3c152685a
commit cadb65a85f
2 changed files with 46 additions and 11 deletions

View File

@@ -8,5 +8,8 @@ import (
)
func TestLookupCNAME(t *testing.T) {
t.Log(utils.LookupCNAME("www.yun4s.cn"))
for _, domain := range []string{"www.yun4s.cn", "example.com"} {
result, err := utils.LookupCNAME(domain)
t.Log(domain, "=>", result, err)
}
}