Related to the https://github.com/golang/go/issues/13705
In previous recommendations microsoft in our organization uses a first-level domain of .local. (https://support.microsoft.com/en-us/kb/296250): Three practical methods to name the DNS domain are: - Make the name a private domain name that is used for name resolution on the internal Small Business Server network. This name is usually configured with the first-level domain of .local. At the present time, the .local domain name is not registered on the Internet. Because of the changes we are no longer resolves domain names in active directory domain. среда, 20 июля 2016 г., 13:01:43 UTC+5 пользователь Steven Hartland написал: > > Could this be related to: > "The pure Go name resolution implementation now respects nsswitch.conf's > stated preference for the priority of DNS lookups compared to local file > (that is, /etc/hosts) lookups." > > On 20/07/2016 08:20, Runix wrote: > > I use the library github.com/jmckaskill/gokerb/khttp in its code (short > code): > > package main > import ( > "log" "net") > func main() { > cname, addrs, err := net.LookupSRV("kerberos", "udp", "DOMAIN.LOCAL") > log.Printf("cname: %#v\n--------\naddrs: %#v\n-------\nerr: %#v", cname, > addrs, err) > } > > I get different results on the version 1.7rc2 and 1.6.3 > > go version go1.7rc2 linux/amd64 - no results: > 2016/07/20 12:00:54 cname: "" > -------- > addrs: []*net.SRV{} > ------- > err: <nil> > > go version go1.6.3 linux/amd64 - records: > 2016/07/20 11:59:46 cname: "_kerberos._udp.DOMAIN.LOCAL." > -------- > addrs: []*net.SRV{(*net.SRV)(0xc8200a3d00), (*net.SRV)(0xc8200a3ce0), > (*net.SRV)(0xc8200a3bc0), (*net.SRV)(0xc8200a3c40), > (*net.SRV)(0xc8200a3dc0), (*net.SRV)(0xc8200a3da0), > (*net.SRV)(0xc8200a3c80), (*net.SRV)(0xc8200a3c20), > (*net.SRV)(0xc8200a3b00), (*net.SRV)(0xc8200a3aa0), > (*net.SRV)(0xc8200a3be0), (*net.SRV)(0xc8200a3c60), > (*net.SRV)(0xc8200a3ca0), (*net.SRV)(0xc8200a3de0), > (*net.SRV)(0xc8200a3e00), (*net.SRV)(0xc8200a3ac0), > (*net.SRV)(0xc8200a3b60), (*net.SRV)(0xc8200a3b20), > (*net.SRV)(0xc8200a3ba0), (*net.SRV)(0xc8200a3a40), > (*net.SRV)(0xc8200a3ae0), (*net.SRV)(0xc8200a3b40), > (*net.SRV)(0xc8200a3a80), (*net.SRV)(0xc8200a3a60), > (*net.SRV)(0xc8200a3c00), (*net.SRV)(0xc8200a3d80), > (*net.SRV)(0xc8200a3b80), (*net.SRV)(0xc8200a3cc0), > (*net.SRV)(0xc8200a3e20), (*net.SRV)(0xc8200a3d40), > (*net.SRV)(0xc8200a3d20), (*net.SRV)(0xc8200a3d60)} > ------- > err: <nil> > > This is a bug? > > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.