Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Golang 1.11 LookupSRV can't resolve mesos-dns compressed responses. #530

Closed
2easy opened this issue Dec 10, 2018 · 3 comments · Fixed by #531
Closed

Golang 1.11 LookupSRV can't resolve mesos-dns compressed responses. #530

2easy opened this issue Dec 10, 2018 · 3 comments · Fixed by #531

Comments

@2easy
Copy link

2easy commented Dec 10, 2018

Hi, with golang 1.11 I can't make it to resolve SRV records from mesos-dns. After some debugging I have discovered that golang does not allow for compressed SRV records (error message "compressed name in SRV resource data").


import (
	"log"
	"net"
)

func main() {
	_, _, err := net.LookupSRV("", "", "_my_service._udp.marathon.mesos.")
	log.Println(err)
}

Related issue: golang/go#27546

@jdef
Copy link
Contributor

jdef commented Dec 10, 2018

To be clear, you're reporting a mesos-dns bug whereby mesos-dns is erroneously compressing part of the DNS response that it returns to the client?

@jdef
Copy link
Contributor

jdef commented Dec 10, 2018

Looks like we need to bump a dependency, this appears to have patched a while ago: miekg/dns@00b8eaa

@2easy
Copy link
Author

2easy commented Dec 10, 2018

Yup, that's it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants