https://play.golang.org/p/1lf51v8MII I think resolver should return error it this case, Someone is expecting to get ipv4:port when resolving tcp4 address. ResolveUDPAddr has the same issue