Open tigerinus opened 3 years ago
@tigerinus
i made a patch can you try this building nss-mdns on alpine
#ifndef _NSS_H
#define _NSS_H 1
#include <features.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
/* Possible results of lookup using a nss_* function. */
enum nss_status
{
NSS_STATUS_TRYAGAIN = -2,
NSS_STATUS_UNAVAIL,
NSS_STATUS_NOTFOUND,
NSS_STATUS_SUCCESS,
NSS_STATUS_RETURN
};
/* Data structure used for the 'gethostbyname4_r' function. */
struct gaih_addrtuple
{
struct gaih_addrtuple *next;
char *name;
int family;
uint32_t addr[4];
uint32_t scopeid;
};
#endif
@predators46 I've moved on to some other project, and lost the original environment for this issue.
I'm sorry I might not be able to help with testing ur patch.
Thanks for following up anyway!
mdns integration doesn't make sense for this project at the moment.
About nss-mdns, I'm not sure that would be possible. musl itself does not query ncsd for DNS requests, because it's a complicated protocol, and it's simpler for them to perform a DNS request to a local resolver, which can be the one implementing mDNS.
Tried to build libnss_mdns against musl-nscd-dev on Alpine. However got errors when building libnss_mdns against musl-nscd-dev: