From owner-freebsd-bugs Thu Jan 9 12:24:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA19696 for bugs-outgoing; Thu, 9 Jan 1997 12:24:18 -0800 (PST) Received: from pir.net (moek.pir.net [158.43.129.42]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA19688 for ; Thu, 9 Jan 1997 12:24:05 -0800 (PST) Received: (from pir@localhost) by pir.net (8.8.4/6.6.6) id UAA00374; Thu, 9 Jan 1997 20:23:35 GMT Date: Thu, 9 Jan 1997 20:23:35 GMT From: Peter Radcliffe Message-Id: <199701092023.UAA00374@pir.net> To: davidn@unique.usn.blaze.net.au Subject: Re: bin/2430: mountd stops on loading if subnet mask is not defined in /etc/networks Cc: bugs@freebsd.org Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >Number: 2430 > >Category: bin > >Synopsis: mountd stops on loading if subnet mask is not defined in /etc/networks > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Jan 9 05:40:00 PST 1997 > >Last-Modified: > >Originator: David Nugent - davidn@blaze.net.au > >Organization: > Unique Computing, Melbourne, Australia > >Release: FreeBSD 3.0-CURRENT i386 > >Environment: > > Also occurs with 2.2-ALPHA and 2.2-BETA. > NFS server enabled in /etc/sysconfig. > /etc/exports uses -network and -mask options. > > >Description: > > When /etc/exports contains an export for a subnet (example > follows), /etc/rc freezes until ^C is hit (causing mountd > not to load) if the appropriate subnet mask is not defined > in /etc/networks. > > e.g. > /usr/src -alldirs -maproot=0:0 -network=203.17.53.16 -mask 255.255.255.240 > > >How-To-Repeat: > > Comment out your subnet mask in /etc/networks, make sure > nfs server is enabled in /etc/sysconfig, reboot, watch > /etc/rc stop as it attempts to load /sbin/mountd. I've just come across this one, from my ktracing it seems to be trying to do a DNS lookup on the network, which will fail fairly quickly if your configured nameservers are relatively fast and you don't have lots of things in your resolv.conf search path. I'm not 100% sure about it, because as soon as I found my rfc defined private network export was failing when the modem line wasn't up and traced it down to the network not being in /etc/networks I stopped looking at it. _If_ it is trying a DNS lookup on the operand of a -network, this is broken IMO. Peter.