mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
20 lines
321 B
Go
20 lines
321 B
Go
package dns
|
|
|
|
import (
|
|
//"net"
|
|
"strings"
|
|
|
|
"github.com/miekg/dns"
|
|
)
|
|
|
|
const defaultNSName = "ns.dns."
|
|
|
|
func isDefaultNS(name, zone string) bool {
|
|
return strings.Index(name, defaultNSName) == 0 && strings.Index(name, zone) == len(defaultNSName)
|
|
}
|
|
|
|
func (r *SRegionDNS) nsAddr() *dns.A {
|
|
//rr := new(dns.A)
|
|
return nil
|
|
}
|