10 lines
249 B
Go
10 lines
249 B
Go
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)
|
|
}
|