In article <[email protected]>, Erik Fair <[email protected]> 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
