diff --git a/app/dns/nameserver_tcp.go b/app/dns/nameserver_tcp.go index 14c716117..f3987afdd 100644 --- a/app/dns/nameserver_tcp.go +++ b/app/dns/nameserver_tcp.go @@ -82,7 +82,7 @@ func baseTCPNameServer(url *url.URL, prefix string) (*TCPNameServer, error) { return nil, err } } - dest := net.TCPDestination(net.DomainAddress(url.Hostname()), port) + dest := net.TCPDestination(net.ParseAddress(url.Hostname()), port) s := &TCPNameServer{ destination: dest,