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+unsubscr...@googlegroups.com <mailto:golang-nuts+unsubscr...@googlegroups.com>.
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.

Reply via email to