4 ms·
I'm skeptical of that. Why do you say so?
by kstrauser 3y ago
I'm skeptical of that. Why do you say so?
- vidarh 3y agogethostbyname() only returns an address, it can't be used to e.g. query for MX records. You also lose control over retries to different addresses if you use gethostbyname(), which some mail server software will also care about. However as I noted in my other reply, musl also implements the res_* functions, like res_send() etc., and those can be used to address both.