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

[v10] desktop access: try using system DNS resolver first #15255

Merged
merged 4 commits into from
Aug 8, 2022

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Aug 5, 2022

Backport #15180 to branch/v10

Prior to this change, we assumed that the best way to resolve
auto-discovered desktops would be to make a DNS query of the
configured LDAP server, since the Linux box running Teleport
would likely not be domain joined and may have separate DNS
configuration.

It turns out to be pretty common to deploy dedicated LDAP servers
behind a VIP or other frontend, in which case we fail to resolve
the desktop's IP even though the system resolver would have worked
just fine.

Instead, make a standard DNS query using the system's default
settings first, and fall back to the LDAP server only if that
query fails.

Fixes #15154
@github-actions github-actions bot removed the request for review from rosstimothy August 5, 2022 22:14
@zmb3 zmb3 enabled auto-merge (squash) August 7, 2022 21:56
@zmb3 zmb3 merged commit 52549ac into branch/v10 Aug 8, 2022
@github-actions github-actions bot deleted the bot/backport-15180-branch/v10 branch August 8, 2022 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants