Files
EdgeAdmin/internal/utils/lookup_test.go

17 lines
351 B
Go
Raw Normal View History

2024-05-17 17:56:37 +08:00
// Copyright 2021 GoEdge CDN goedge.cdn@gmail.com. All rights reserved.
2023-03-21 11:41:40 +08:00
package utils_test
import (
"testing"
2024-07-27 15:42:58 +08:00
"github.com/TeaOSLab/EdgeAdmin/internal/utils"
2023-03-21 11:41:40 +08:00
)
func TestLookupCNAME(t *testing.T) {
for _, domain := range []string{"www.yun4s.cn", "example.com"} {
result, err := utils.LookupCNAME(domain)
t.Log(domain, "=>", result, err)
}
2023-03-21 11:41:40 +08:00
}