Skip to content

Is there a way to specify the DNS used by http_client? #460

Answered by jcorporation
helkaluin asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way to configure a dns server for myMPD.

myMPD uses res_init() to get the nameserver from resolv.conf. This is working for gnu libc, but not for musl. The docker container is based on Alpine Linux.

In musl, the res_init()function looks like: http://git.musl-libc.org/cgit/musl/tree/src/network/res_init.c. Therefore myMPD finds no dns server. Mongoose as http client library uses his own dns client implementation to resolve names asynchronously and depends on the configured dns server.

Libmpdclient uses getaddrinfo to resolve host names and not depends on a working res_init() function.

Problem will be fixed for the 7.0.1 version: #461

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcorporation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants