From: uchrist@winx06.informatik.uni-wuerzburg.de (Udo Christ) Subject: [Q] gethostbyname & named (longer) Date: Mon, 21 Dec 1992 11:59:42 GMT
Hi all,
i ran down into a few problems when compiling the plp sources
( nice printer spooler anyway ) last weekend.
The problem is :
1) When i start up /usr/lib/lpd ( the daemon is configured correct )
it takes about 1 min to come up right.
2) Everytime i start a printer job with lpr it takes ~1 min too.
( even when i just use lpc to examine the queue )
I tracked the problem down to a call to the gethostbyname() function, which
takes a little over 1 min to complete. I wrote a little C Program, which
does nothing, but a call to gethostbyname, and timed it :
real 1:15.0
user 0.0
sys 0.0
Anyone had the same problems ??
I've compiled the kernel with full support on everything :-)
and also tried to get a named running, but with little to no success.
( can be read as : named comes up, reads the conf-files with no
errors, but a nslookup or nsquery returns
no name server for the root domain )
Has anyone a running named configured correctly with all the related
configuration files ( email me ), or, even better, there must be
a way to tell gethostbyname to return immediatly if no name-server is
running. ( This makes a little more sense to me, since i'm using my
Linux Box as a stand-alone-not-connected-to-network-machine ).
I know that there must be files, which tell gethostbyname not to wait
for a name-server timeout, but don't know the names and the contents.
Even the TCP-IP FAQ doesn't stat such things.
And BTW: The section about the named configuration files in the FAQ took
some time to understand. ( The file named.boot is referenced at
least two times with different contents ).
Could someone fill me up on the above problems, please ??
Thanx in advance, Udo
uchrist@winx06.informatik.uni-wuerzburg.de