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

get error: getaddrinfo EAI_BADFLAGS on android #3771

Closed
Jssly opened this issue Nov 11, 2015 · 7 comments
Closed

get error: getaddrinfo EAI_BADFLAGS on android #3771

Jssly opened this issue Nov 11, 2015 · 7 comments
Labels
arm Issues and PRs related to the ARM platform. dns Issues and PRs related to the dns subsystem.

Comments

@Jssly
Copy link

Jssly commented Nov 11, 2015

I compiled 4.2.2 for android, however when it try to resolve a domain, it alway returns getaddrinfo EAI_BADFLAGS xxxx.com

@mscdex mscdex added dns Issues and PRs related to the dns subsystem. arm Issues and PRs related to the ARM platform. labels Nov 11, 2015
@bnoordhuis
Copy link
Member

How (i.e. through what API) are you resolving domain names?

@cjihrig
Copy link
Contributor

cjihrig commented Nov 11, 2015

Is this the AI_V4MAPPED / AI_ADDRCONFIG issue again?

Possibly related - nodejs/node-v0.x-archive#8540

@Jssly
Copy link
Author

Jssly commented Nov 12, 2015

@cjihrig
yes, the same case and same error. I did not look further in that post yet.

@Jssly
Copy link
Author

Jssly commented Nov 12, 2015

@cjihrig
I changed the code to

if (process.platform !== 'freebsd' && process.platform !== 'android')  
      dnsopts.hints |= dns.V4MAPPED;  

it works fine now.

Thanks

@cjihrig
Copy link
Contributor

cjihrig commented Nov 13, 2015

@Jssly out of curiosity, what is the value of dns.V4MAPPED on Android?

@cjihrig
Copy link
Contributor

cjihrig commented Jan 9, 2016

Fixed in c64018e

@cjihrig cjihrig closed this as completed Jan 9, 2016
@rvagg
Copy link
Member

rvagg commented Mar 22, 2016

I'm seeking some feedback about how Node.js is used on Android if anyone watching this thread would like to tell us about it: nodejs/build#359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues and PRs related to the ARM platform. dns Issues and PRs related to the dns subsystem.
Projects
None yet
Development

No branches or pull requests

5 participants