Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2003 13:58:57 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Rod Person <rod.person@hotpop.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: NFS mount problem - can't get net id for host
Message-ID:  <20030629125857.GA22486@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20030629082253.2bc0f6db.rod.person@hotpop.com>
References:  <20030629082253.2bc0f6db.rod.person@hotpop.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 29, 2003 at 08:22:53AM -0400, Rod Person wrote:
> I'm trying to setup a nfs share on my server. I'm trying to connect from
> a laptop to that share. The laptops ip address is assigned via dhcp.
>=20
> I try to connect to the share with the command
> mount -v servername:/mountpoint /mnt
>=20
> and get the error: nfs: can't get net id for host

This error occurs when mount_nfs(8) has attempted to look up your
server's hostname and resolve it into one or more IP numbers first via
inet_addr(3) and failing that then via gethostbyname(3), and still
hasn't managed to get an IP number.

Try putting the hostname and IP number of your server into /etc/hosts
on your client machine, or configure your client machine to use a DNS
machine that knows about your server.

	Cheers,

	Matthew


--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+/uKRdtESqEQa7a0RAq6jAJ43zDTmryFHMxGRAu7pxdrBdEsIXQCfe5t4
XywDuaRtL5cUhsiq2qSodK8=
=rIQT
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030629125857.GA22486>