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

ames: resolve galaxy ips using ipv4 only #543

Merged
merged 1 commit into from
Oct 20, 2023
Merged

ames: resolve galaxy ips using ipv4 only #543

merged 1 commit into from
Oct 20, 2023

Conversation

pkova
Copy link
Collaborator

@pkova pkova commented Oct 19, 2023

Some ships experience a lot of printfs like ames: czar at zod.urbit.org: not found (b) for galaxies that are up and have no problems with their DNS config. I initially thought this was something else, but the problem I found by mucking around with tcpdump is that we issue both a IPv4 A record query and a IPv6 AAAA record query. When the IPv6 query resolves it thrashes all kinds of state, sometimes causing the spurious printf above.

This PR configures uv_getaddrinfo to return just IPv4 addresses. I also removed the unnecessary while loop.

@pkova pkova requested a review from a team as a code owner October 19, 2023 19:15
Copy link
Member

@joemfb joemfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch!

@pkova pkova merged commit 2b024e9 into develop Oct 20, 2023
5 checks passed
@pkova pkova deleted the pkova/dns-fix branch October 20, 2023 10:35
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

Successfully merging this pull request may close these issues.

3 participants