Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Use GoLang 1.20 to fix DNS resolution on macOS #16265

Closed
tristanmorgan opened this issue Feb 14, 2023 · 2 comments
Closed

[Feature] Use GoLang 1.20 to fix DNS resolution on macOS #16265

tristanmorgan opened this issue Feb 14, 2023 · 2 comments

Comments

@tristanmorgan
Copy link
Member

Feature Description

Related to #3267, when Consul is compiled with golang on 1.20 the updated resolving logic for macOS allows the use of scoped queries.

Example output of release build

$ export CONSUL_HTTP_ADDR=consul.service.consul
$ consul version
Consul v1.14.4
Revision dae670fe
Build Date 2023-01-26T15:47:10Z
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
$ consul members
Error retrieving members: Get "http://consul.service.consul/v1/agent/members?segment=_all": dial tcp: lookup consul.service.consul on 10.0.0.1:53: no such host

Example output of GoLang 1.20 build with CGO_ENABLED=0 and GOOS=darwin inside golang:alpine docker container

$ export CONSUL_HTTP_ADDR=consul.service.consul
$ ./consul version
Consul v1.14.4
Build Date 1970-01-01T00:00:01Z
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
$ ./consul members
Node      Address            Status  Type    Build   Protocol  DC    Partition  Segment
myserver  10.0.0.23:8301     alive   server  1.14.4  3         dc1   default    <all>

Use Case(s)

To alow the use of scoped queries as described at Forward DNS for Consul Service Discovery

@tristanmorgan
Copy link
Member Author

Fixed in #16263

@david-yu
Copy link
Contributor

Thanks @tristanmorgan that PR you linked has been merged and will go out first in 1.15.0 later this month, and will be back ported to 1.14.x a few weeks afterwards next month.

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

No branches or pull requests

2 participants