From nobody@FreeBSD.org  Wed Aug  6 15:41:04 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0237D106568F
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Aug 2008 15:41:04 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E65B08FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Aug 2008 15:41:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m76Ff3Ds001761
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Aug 2008 15:41:03 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m76Ff3Us001760;
	Wed, 6 Aug 2008 15:41:03 GMT
	(envelope-from nobody)
Message-Id: <200808061541.m76Ff3Us001760@www.freebsd.org>
Date: Wed, 6 Aug 2008 15:41:03 GMT
From: Kirk Strauser <kirk@daycos.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Hostnames in nsmb.conf seem to be ignored
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126305
>Category:       conf
>Synopsis:       nsmb.conf(5): Hostnames in nsmb.conf seem to be ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 06 15:50:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Wed Aug 06 19:23:02 UTC 2008
>Originator:     Kirk Strauser
>Release:        7-STABLE
>Organization:
The Day Companies
>Environment:
FreeBSD athena.daycos.com 7.0-STABLE FreeBSD 7.0-STABLE #3: Wed Jul 23 15:24:38 CDT 2008     root@minerva.daycos.com:/usr/obj/usr/src/sys/MINERVA  amd64

>Description:
I have an entry in /etc/fstab to mount a Windows share:

    //kirk@tiffsrv/vdrive /mnt/tiffsrv/vdrive smbfs rw,noexec 0 0

For whatever reason, mount_smbfs can't resolve that address (although smbclient can):

    # mount /mnt/tiffsrv/vdrive
    mount_smbfs: can't get server address: syserr = Operation timed out

So, I added an entry to /etc/nsmb.conf like so, following the example in the "[FSERVER]" block:

    [TIFFSRV:KIRK]
    password=mypassword
    addr=tiffsrv.office.daycos.com

I still get the same error:

    # mount /mnt/tiffsrv/vdrive
    mount_smbfs: can't get server address: syserr = Operation timed out

If I hardcode the hostname into /etc/fstab, though, it works as expected:

    //kirk@tiffsrv/vdrive /mnt/tiffsrv/vdrive smbfs rw,noexec,-Itiffsrv.office.daycos.com 0 0

I don't know whether this is a problem with the documentation for nsmb.conf or with mount_smbfs, but the end result is that it doesn't work as stated.
>How-To-Repeat:

>Fix:
Use the "-I" option to mount_smbfs to specify the address.


>Release-Note:
>Audit-Trail:
>Unformatted:
