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

[documentation] Add description how to enable consul DNS in Docker containers when consul listens :8600 port #18305

Closed
EugenKon opened this issue Aug 23, 2023 · 9 comments · Fixed by #20369
Assignees
Labels
good first issue stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/docs Documentation issues and enhancements theme/networking type/enhancement

Comments

@EugenKon
Copy link

Proposal

I checked this solution and it works as expected. It would be nice if this will be added to official documentation here

@jrasell
Copy link
Member

jrasell commented Sep 6, 2023

Hi @EugenKon, the proposed documentation to change links to the Consul site, is this expected or should this be a Nomad reference link?

@jrasell jrasell self-assigned this Sep 6, 2023
@EugenKon
Copy link
Author

EugenKon commented Sep 6, 2023

Hi, @jrasell . It seems I do not understand your question about Nomad reference link.

@jrasell
Copy link
Member

jrasell commented Sep 6, 2023

@EugenKon the final link in your description points to a Consul tutorial.

I checked #12894 (comment) solution and it works as expected. It would be nice if this will be added to official documentation here

@EugenKon
Copy link
Author

EugenKon commented Sep 6, 2023

Yes, it does.

@slonopotamus
Copy link

I believe people just want a clear explanation on how to configure Nomad+Consul so that docker tasks running in Nomad can utilize Consul DNS, regardless of whether it is documented in Nomad or Consul docs.

@jrasell jrasell added theme/docs Documentation issues and enhancements theme/networking good first issue stage/accepted Confirmed, and intend to work on. No timeline committment though. and removed stage/waiting-reply labels Sep 6, 2023
@EugenKon
Copy link
Author

EugenKon commented Sep 6, 2023

Ah, It seems I got. I mess up repositories. This issue should be opened in hashicorp/consul repository.

@jrasell jrasell removed their assignment Sep 6, 2023
@EugenKon
Copy link
Author

EugenKon commented Sep 6, 2023

And I agree with @slonopotamus . People just need a clear description how to utilize Consul DNS for tasks running in Nomad. The link I have posted points to Consul documentation, because that is most close part of documentation to the topic. And it would be nice if that part could be improved.

@EugenKon
Copy link
Author

EugenKon commented Sep 6, 2023

My final solution is:
/etc/systemd/resolved.conf.d/dns.conf

[Resolve]
DNSSEC=false
DNS=127.0.0.1:8600

DNSStubListener=yes
DNSStubListenerExtra=172.17.42.1

Domains=~consul

/etc/docker/daemon.json

{
  "bip": "172.17.42.1/16",
  "dns-search": ["our.domain.example.com"],
  "dns": ["172.17.42.1"]
}

tgross added a commit that referenced this issue Apr 11, 2024
Add a standalone section to the Consul integration docs showing how to configure
both the Consul agent and the workload to take advantage of Consul DNS. Include
a reference to the new transparent proxy feature as well.

Fixes: #18305
@tgross tgross self-assigned this Apr 11, 2024
tgross added a commit that referenced this issue Apr 12, 2024
Add a standalone section to the Consul integration docs showing how to configure
both the Consul agent and the workload to take advantage of Consul DNS. Include
a reference to the new transparent proxy feature as well.

Fixes: #18305
philrenaud pushed a commit that referenced this issue Apr 18, 2024
Add a standalone section to the Consul integration docs showing how to configure
both the Consul agent and the workload to take advantage of Consul DNS. Include
a reference to the new transparent proxy feature as well.

Fixes: #18305
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue stage/accepted Confirmed, and intend to work on. No timeline committment though. theme/docs Documentation issues and enhancements theme/networking type/enhancement
Projects
Development

Successfully merging a pull request may close this issue.

4 participants