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

Forward DNS for Consul Service Discovery #8

Open
Tracked by #275 ...
lens0021 opened this issue Mar 26, 2021 · 5 comments
Open
Tracked by #275 ...

Forward DNS for Consul Service Discovery #8

lens0021 opened this issue Mar 26, 2021 · 5 comments
Labels
consul HashiCorp Consul enhancement New feature or request

Comments

@lens0021
Copy link
Member

lens0021 commented Mar 26, 2021

To use the Init Task Pattern of lifecycle Stanza, we need a forward DNS for Consul Service Discovery.

Reference(s)

@lens0021 lens0021 added the enhancement New feature or request label Mar 26, 2021
@lens0021
Copy link
Member Author

Closed by femiwiki/infra@180ab0e

@lens0021
Copy link
Member Author

lens0021 commented Mar 28, 2021

dig @127.0.0.1 mysql.service.dc1.consul works but dig mysql.service.dc1.consul and ncat don't.

$ ncat --send-only mysql.service.dc1.consul < /dev/null; echo $?
Ncat: Could not resolve hostname "mysql.service.dc1.consul": Name or service not known. QUITTING.
2

@lens0021 lens0021 reopened this Mar 28, 2021
@lens0021 lens0021 added the consul HashiCorp Consul label Apr 1, 2021
@lens0021
Copy link
Member Author

lens0021 commented May 1, 2021

dnsmasq is re-deploy at femiwiki/infra@4cc5d42 and femiwiki/infra@0e0b953

lens0021 added a commit that referenced this issue May 1, 2021
@lens0021 lens0021 self-assigned this Jun 16, 2021
@lens0021 lens0021 moved this to Done in femiwiki.com Jan 14, 2023
@lens0021 lens0021 moved this from Done to In Progress in femiwiki.com Aug 3, 2024
@lens0021 lens0021 reopened this Oct 3, 2024
@github-project-automation github-project-automation bot moved this from In Progress to To do in femiwiki.com Oct 3, 2024
@lens0021
Copy link
Member Author

lens0021 commented Oct 3, 2024

Today I tried to make systemd-resolved to achieve forwarding DNS but have never made nslookup consul.service.consul to succeed. Any try to make /etc/resolv.conf to include nameserver 127.0.0.1:8600 has failed.

As a workaround, nslookup -port=8600 consul.service.consul 127.0.0.1 can be used.1 I will do that.

Footnotes

  1. https://stackoverflow.com/a/63663167/10916512

@lens0021
Copy link
Member Author

lens0021 commented Oct 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consul HashiCorp Consul enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant