-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted
Milestone
Description
What version of Go are you using (go version)?
go version go1.9.2 darwin/amd64
What did you do?
package main
import (
"net"
"fmt"
)
func main() {
fmt.Println(net.LookupHost("10.256"))
fmt.Println(net.LookupHost("10.256.1"))
fmt.Println(net.LookupHost("10.10.256"))
fmt.Println(net.LookupHost("10.10.256.1"))
fmt.Println(net.LookupHost("10.10.10.256"))
}
What did you expect to see?
This program works fine on both Linux & Windows and does show below output, but not on Mac
[] lookup 10.256: no such host
[] lookup 10.256.1: no such host
[] lookup 10.10.256: no such host
[] lookup 10.10.256.1: no such host
[] lookup 10.10.10.256: no such host
What did you see instead?
[10.0.1.0] <nil>
[] lookup 10.256.1: no such host
[10.10.1.0] <nil>
[] lookup 10.10.256.1: no such host
[] lookup 10.10.10.256: no such host
Metadata
Metadata
Assignees
Labels
NeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.help wanted