Skip to content

getaddrinfo() returns only ipv6 when using AF_UNSPEC #109

Closed
@jvasanthan

Description

@jvasanthan

Confirm by changing [ ] to [x] below:

getaddrinfo function in posix/host_resolver returns only IPv6 resolved addresses in my target platform(ARM uclibc).The same function returns both IPv4 and IPv6 addresses in my host environment(Ubuntu glibc).

After I changed hints.ai_family to AF_INET, I do get IPv4 addresses. A quick google search revealed similar problems related to hosts files settings. I tried them but nothing helped.
https://stackoverflow.com/questions/55627377/getaddrinfo-returns-only-ipv6-when-using-af-unspec

I would like to keep the AWS core libraries unmodified. is there any other solution to fix IPv4 issue.

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceQuestion that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 2 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions