Hi, RVP <[email protected]> writes:
> On Mon, 19 Jan 2026, Paul Ripke wrote: > >> Do we check for underscores somewhere in name resolution? >> > > Yes. > >> I know that RFC 1035 disallows them from hostnames... >> > > That's it. > >> I had a quick browse of our code and nothing obvious stood out. >> > > I think: > > src/lib/libc/net/gethnamaddr.c: > > gethostbyname() > gethostbyname_r() -> gethostbyname_internal() -> > nsdispatch() -> _dns_gethtbyname() -> getanswer() -> > > name_ok = res_hnok / maybe_ok() > > This works--see resolv.conf(5): > > # echo 'options no-check-names' >> /etc/resolv.conf If you use dhcpcd(8), it regenerates /etc/resolv.conf at every invocations. # echo 'resolv_conf_options=no-check-names' >> /etc/resolvconf.conf will add 'options no-check-names' to /etc/resolv.conf automatically. Thank you. > -RVP -- Ryo ONODERA // [email protected] PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
