*BSD News Article 22749


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!grian!puffin!pete
From: pete@puffin.uucp (Pete Carah)
Subject: Problem with getsockname (FreeBSD 1.0 EPS)
Organization: /usr/lib/news/organi[sz]ation
Date: Thu, 21 Oct 1993 17:11:56 GMT
Message-ID: <CF9Brx.7LK@puffin.uucp>
Lines: 16

I've got a problem with inetd starting; if I disable the rpc entries
in inetd.conf everything is fine.  If not, it hangs on getsockname(),
apparently because I'm not running named and also am not connected to
a machine that is.  I took bind out of /etc/host.conf and rebooted, to
no avail.  There is no resolv.conf, and I don't want to figure out a
viable named configuration yet.

Also, the default nameserver timeout is LONG (seems to be about 5 mins).
Is that configurable?  When I do get connected, the primary nameserver is
often unreachable; I'd hate to wait that long for a secondary.

(I had to put a bundle of syslog calls into inetd.c to find this one...:-)

Is there a way to get getsockname() to not do a nameserver query?

-- Pete