From owner-freebsd-questions@FreeBSD.ORG Sat Jul 12 13:41:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0468B37B407 for ; Sat, 12 Jul 2003 13:41:42 -0700 (PDT) Received: from oak.FernUni-Hagen.de (oak.fernuni-hagen.de [132.176.114.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3F0843FD7 for ; Sat, 12 Jul 2003 13:41:40 -0700 (PDT) (envelope-from q5480035@bonsai.FernUni-Hagen.de) Received: from amavis by oak.FernUni-Hagen.de with scanned-ok (Exim 4.04) id 19bRBb-0002cX-00; Sat, 12 Jul 2003 22:41:39 +0200 Received: from bonsai.fernuni-hagen.de ([132.176.114.21]) by oak.FernUni-Hagen.de with esmtp (Exim 4.04) id 19bRBU-0002cN-00; Sat, 12 Jul 2003 22:41:32 +0200 Received: (from q5480035@localhost) by bonsai.fernuni-hagen.de (8.11.6+Sun/8.10.2) id h6CKfWB26915; Sat, 12 Jul 2003 22:41:32 +0200 (MEST) Date: Sat, 12 Jul 2003 22:41:32 +0200 (MEST) Message-Id: <200307122041.h6CKfWB26915@bonsai.fernuni-hagen.de> From: Marc Ernst Eddy van Woerkom To: freebsd-questions@freebsd.org X-Virus-Scanned: by AMaViS perl-11 Subject: Setting up small network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 20:41:42 -0000 Hello, I have a small network of two boxes and experience some oddities so that I would be glad for some advice. Box A: FreeBSD, interface isp0 (ISDN card to Internet provider) and interface xlo (Ethernet to Box B) Box B: Windows or FreeBSD or Linux Ethernet interface to Box Box A on isp0 gets some dynamic IP everytime it connects Box A on xl0 should be 192.168.0.1 Box B should be 192.1668.0.2 To allow internet browsing on Box B, I set up natd on Box A, to have packages coming in on Box A via interface isp0 and to sent out on interface xl0 to Box B. To allow file sharing under Windows on Box B, I set up samba on Box A. Where I seem to have problems is DNS. I get nameserver lookups (the name server is at my provider), which result in a phone connection, even if a local name (I mean something I put in /etc/hosts already) is resolved. Perhaps my /etc/hosts is already not correct: 127.0.0.1 localhost localhost.my.domain a-gw a-gw.my.domain 192.168.0.1 a.my.domain a 192.168.0.2 b.my.domain b Any advice or tutorial? Regards, Marc