Subject: bin/28923: mountd fails to resolve names
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 01/09/2005 18:51:00
>Number: 28923
>Category: bin
>Synopsis: mountd fails to resolve names
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 09 18:51:00 +0000 2005
>Originator: Kimmo Suominen
>Release: NetBSD 2.99.12 / Binaries: 2.99.11 (2004-12-15)
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD hrothgar.gw.com 2.99.12 NetBSD 2.99.12 (GW-GENERIC) #92: Sun Jan 9 04:40:56 EST 2005 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
At boot, mountd practically always fails to resolve hostnames in
netgroups used in /etc/exports. This never used to fail, but has
started doing so recently (perhaps since 2.99.10).
The errors logged are:
Jan 9 04:43:01 hrothgar mountd[606]: "/net/hrothgar/proj-8 -maproot", line 1: can't get address info for host nix.gw.com
Jan 9 04:43:01 hrothgar mountd[606]: "/net/hrothgar/src-1 -maproot", line 2: can't get address info for host nix.gw.com
Jan 9 04:43:01 hrothgar mountd[606]: "/net/hrothgar/src-2 -maproot", line 3: can't get address info for host nix.gw.com
The /etc/exports file contents:
/net/hrothgar/proj-8 -maproot=root dist-us
/net/hrothgar/src-1 -maproot=root dist-us
/net/hrothgar/src-2 -maproot=root dist-us
/home -alldirs -network 204.80.150.0/25
Running "env - sh /etc/rc.d/mountd reload" as soon as I can login
after booting results in the exports file resolving correctly.
DNS is needed to resolve the hostnames, and this has not changed.
The DNS server is up and running.
The netgroups are from a local db (not from NIS). The first host
returned from that group is nix.gw.com:
hrothgar:~> netgroup dist-us
nix.gw.com
morgoth.gw.com
hrothgar.gw.com
grendel.gw.com
dit.gw.com
beowulf.gw.com
stinky.astron.com
>How-To-Repeat:
Reboot and observe.
>Fix: