Skip to content

Conversation

@dwayz94
Copy link

@dwayz94 dwayz94 commented Nov 21, 2025

Modernize DNS Resolution in netadr_t

This PR replaces the old gethostbyname() logic with a modern getaddrinfo() implementation and improves parsing of host:port strings.

Highlights

  • Reliable DNS resolution using getaddrinfo
  • Correct handling of domain names and subdomains
  • Proper IPv4 and IPv4-mapped IPv6 support
  • Stable parsing of example.com:27015 and similar formats

Reason

The previous implementation caused failures when connecting to servers via domain names.
This patch makes hostname resolution consistent and compatible with modern setups.

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.

1 participant