-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
What version of Go are you using (go version)?
go1.13 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
macos and alpine container
What did you do?
package main
import (
"fmt"
"net"
)
func main() {
records, err := net.LookupNS("_acme-challenge.xxxxxxx.cat")
if err != nil {
fmt.Println(err.Error())
}else {
fmt.Println(records[0])
}
}
I see related issues with cgo/go/cgo+1 resolvers but:
export GODEBUG=netdns=cgo
go run main.go
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
export GODEBUG=netdns=go
run main.go
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
export GODEBUG=netdns=cgo+1
go run main.go
go package net: using cgo DNS resolver
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
dig +short ns _acme-challenge.xxxxx.cat
ghs.googlehosted.com
What did you expect to see?
ghs.googlehosted.com.
What did you see instead?
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
it works fine in most cases, but not in some cases(domains) and I don't understand why.
I have the complete code running in an alpine container within a kubernetes cluster, so I rule out that it is a problem with my local dns solver.
Note: Adding net.LookupCNAME when LookupNS return error I can see the expected result. lookupNS not following CNAME? is the expected behavior?
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.