Subject: should getnet*(3) use the DNS?
To: None <tech-userlevel@NetBSD.ORG>
From: matthew green <>
List: tech-userlevel
Date: 08/26/1997 22:20:38
in the most recent update of the libc resolver, the functions
implementing the getnet*(3) family of functions were changed
so that they may also look up addresses in the DNS.  at the
time, i thought this was a good idea, as i seem to recall
seeing that in other OS's as well.

however, it causes route(8) to hang (really, wait for a time
out) if the name server does not answer....

jason thorpe fixed this somewhat about a month ago (with me
looking over his shoulder :-) and extended the getnet*(3)
functions to use the resolv.conf "lookup file bind" stuff,
but there are still cases where this will wait for the

i'm not aware of any other way to stop this from waiting for
the timeout than ripping the DNS code out of the getnet*(3)
functions....  i'd hope that i'm missing something here ..

if i'm not, should we go back to the old code ?