ip-ddns/adapter/dnsresolver/interface.go

10 lines
249 B
Go
Raw Normal View History

2023-11-17 07:20:10 +01:00
package dnsresolver
import "net"
// DomainNameResolver represents domain name resolver.
type DomainNameResolver interface {
// ResolveA resolves domain's A records agains given nameserver.
ResolveA(domain, nameserver string) ([]net.IP, error)
}