NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Name resolution and underscores? www.engadget.com




To: Paul Ripke <stix%stix.id.au@localhost>

Subject: Re: Name resolution and underscores? www.engadget.com

From: RVP <rvp%SDF.ORG@localhost>

Date: Mon, 19 Jan 2026 12:53:53 +0000 (UTC)


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

-RVP


Follow-Ups:

Re: Name resolution and underscores? www.engadget.com
From: Ryo ONODERA

Re: Name resolution and underscores? www.engadget.com
From: Robert Elz

Re: Name resolution and underscores? www.engadget.com
From: Paul Ripke


References:

Name resolution and underscores? www.engadget.com
From: Paul Ripke




Prev by Date: Name resolution and underscores? www.engadget.com

Next by Date: Re: Internet services and US vs EU jurisdiction

Previous by Thread: Name resolution and underscores? www.engadget.com

Next by Thread: Re: Name resolution and underscores? www.engadget.com

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index