In article <56dd2b5f-26b1-40b7-bd84-103d3f255...@netbsd.org>,
Erik Fair  <f...@netbsd.org> wrote:
>So, what did we do by default: allow “_” in hostnames when that’s
>explicitly against standard, or not? I read the patch in the PR and
>couldn’t make heads or tails of it.

res_init() sets RES_NOCHECKNAME, but the resolver code knows nothing
about that flag. It is only being checked in the leaf implementing
functions:  getaddrinfo(3), gethostbyname(3), getnetbyname(3).
gethostbyname(3) respected the flag and allowed names with bad
characters to be resolved (remember all this is client-side), but
the other two did not respect the flag and failed names containing
_'s for example.

christos

Reply via email to