From owner-freebsd-questions@FreeBSD.ORG Wed Apr 23 10:16:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9914B106564A for ; Wed, 23 Apr 2008 10:16:20 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from svarun.infrax.si (syssvarun.infrax.si [89.212.81.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4115B8FC19 for ; Wed, 23 Apr 2008 10:16:20 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from localhost (sysSvarun.infrax.si [89.212.81.4]) by svarun.infrax.si (Postfix) with ESMTP id 47C7324A8AD; Wed, 23 Apr 2008 12:16:18 +0200 (CEST) Received: from svarun.infrax.si ([89.212.81.4]) by localhost (svarun.infrax.si [89.212.81.4]) (amavisd-maia, port 10024) with ESMTP id 67697-05; Wed, 23 Apr 2008 12:16:10 +0200 (CEST) Received: from [192.168.15.2] (lk.84.20.249.154.dc.cable.static.lj-kabel.net [84.20.249.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nejko@infrax.si) by svarun.infrax.si (Postfix) with ESMTP id 052C424A9F8; Wed, 23 Apr 2008 12:16:09 +0200 (CEST) Message-ID: <480F0C68.9090804@skoberne.net> Date: Wed, 23 Apr 2008 12:16:08 +0200 From: =?UTF-8?B?TmVqYyDFoGtvYmVybmU=?= User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Johan Hendriks References: <47F54BB3.1080801@skoberne.net><48071F0E.2020002@skoberne.net> <57200BF94E69E54880C9BB1AF714BBCB5DDDB1@w2003s01.double-l.local> <480DB0E2.3070202@skoberne.net><60553.203.127.42.92.1208860527.squirrel@www.superhero.nl> <480EFF60.3040901@skoberne.net> <57200BF94E69E54880C9BB1AF714BBCB5DDDDC@w2003s01.double-l.local> In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCB5DDDDC@w2003s01.double-l.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 7.0 jail and Samba 3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 10:16:20 -0000 Hi, > This is nota n issue with samba it is a name resolve issue. Then why is Samba replying to NetBIOS broadcasts very nicely when I put it outside jail (with the same configuration)? As far as I understand Samba also provides resolving - NetBIOS resolving via its nmbd. > If you add in c:\windows\system32\drivers\etc\hosts the following does all work then > > ipadress Machine-name > > where ipadress is the ipadres of the jailed samba server and machine-name is the netbios name of the jailed server. > > If this works then you need to check your DNS server. Okay, let me clarify all this once again: I know that this will work for me. I also know that if I add a mapping "machine" -> "IP address" into my DNS it will work for me. I also know that if I turn on WINS support in smb.conf and then set up a WINS server on the Windows machine, it will work fine. But as you probably know, there is also a "third" way of resolving names to IP addresses - it is called NetBIOS broadcasts - from Wikipedia: "In order to connect to a computer running TCP/IP via its NetBIOS name, the name must be resolved to a network address. Today this is usually an IP address (the NetBIOS name-IP address resolution is often done by either broadcasts or a WINS Server — NetBIOS Name Server)." So it says _either by broadcasts or a WINS Server_. I don't want to use WINS server (or DNS server) for this, but NetBIOS broadcasts. And these broadcasts work just fine when my Samba 3 server is not running in a FreeBSD jail. As soon as I put it into the jail, for some reason, Samba 3 stops responding to NetBIOS broadcasts. And this is what I would like to understand - why Samba 3 stops responding to these broadcasts when it is running in a jail. Thanks, Nejc