blob: 1a13a8780c9aac128600493266fbd1285b18a7bc [file] [log] [blame]
gioe72b54f2024-04-22 10:44:41 +04001package dns
2
3import (
4 "net"
5)
6
7type Client interface {
8 Lookup(host string) ([]net.IP, error)
9}
10
11type realClient struct{}
12
13func NewClient() Client {
14 return realClient{}
15}
16
17func (c realClient) Lookup(host string) ([]net.IP, error) {
18 return net.LookupIP(host)
19}