Files
EdgeAPI/internal/utils/lookup_test.go

21 lines
401 B
Go
Raw Normal View History

2022-09-10 16:13:21 +08:00
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package utils_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/utils"
"testing"
)
func TestLookupCNAME(t *testing.T) {
t.Log(utils.LookupCNAME("www.yun4s.cn"))
}
func TestLookupNS(t *testing.T) {
t.Log(utils.LookupNS("goedge.cn"))
}
func TestLookupTXT(t *testing.T) {
t.Log(utils.LookupTXT("yanzheng.goedge.cn"))
}